Created
July 7, 2017 14:10
-
-
Save AndrewChanChina/dd8c24b7f85924f401fa7b5929fb46e2 to your computer and use it in GitHub Desktop.
js scheme打开app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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