Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
js scheme打开app
<html>
<head>
<script type="text/javascript">
function open_discovery()
{
window.open("mqqapi://qstory/opendiscovery?one_page=0&key_form=web&src_type=type&version=1&parter_api=tribe", '_blank')
// window.open('mqqapi://huayang', '_blank')
//window.location.href = 'mqqapi://qstory/open?src_type=1&version=1&parter_api=1&default_label=dd';
}
function open_win()
{
window.open("http://story.now.qq.com/mobile/transfer.html?one_page=%s&key_form=%s&src_type=%s&version=%s&parter_api=%s&actionnamekey=%scontentType=%s")
}
function open_riji()
{
//window.open("mqqapi://qstory/open", '_blank')
window.location.href = 'mqqapi://qstory/open';
}
</script>
</head>
<body>
<div>hellow</div>
<input type=button value="Open Window" onclick="open_win()" />
<input type=button value="Open discovery" onclick="open_discovery()" />
<a href="mqqapi://huayang">Launch Application</a>
<input type=button value="Open riji" onclick="open_riji()" />
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.