客户端调用
程序员文章站
2024-03-22 23:22:40
...
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function javacalljs(){
document.getElementById("content").innerHTML +=
"<br\>java调用了js函数";
}
function javacalljswithargs(arg){
document.getElementById("content").innerHTML +=
("<br\>"+arg);
}
function getjson(){
var vs = '{"description":"化而为鸟,其名为鹏。鹏之大,需要两个烧烤架,一个秘制,一个微辣;来瓶雪花,勇闯天涯","title":"北冥有鱼,其名为鲲。鲲之大,一锅炖不下","wechatIcon":"http://zhushou.xiaojukeji.com/static/image/icons/liubing/dihu-redpoing.png"}';
return vs;
}
</script>
</head>
<br>
<!--<iframe src="zhushou://com.didichuxing.changxian/123" style="display:none"></iframe>-->
<a href="zhushou://com.didichuxing.changxian?bugid=FDB-13816">open</a>
<br/>
<br/>
<!--http://zhushou.xiaojukeji.com/res/app-internal-release-0415.apk-->
<input type="button" value="下载" onClick="window.JSInterFace.getDownload('http://gdown.baidu.com/data/wisegame/efc7aaa4dda59fdc/baidushoujizhushou_16788665.apk')" />
<br/>
<br/>
<input type="button" value="传递分享信息" onClick="window.JSInterFace.getShareInfo(getjson())"/>
</body>
</html>
上一篇: 基于socket的多客户端之间互相通信