Skip to content

Instantly share code, notes, and snippets.

@AndrewChanChina
Created July 7, 2017 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewChanChina/dd8c24b7f85924f401fa7b5929fb46e2 to your computer and use it in GitHub Desktop.
Save AndrewChanChina/dd8c24b7f85924f401fa7b5929fb46e2 to your computer and use it in GitHub Desktop.
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