码迷,mamicode.com
首页 > 移动开发 > 详细

网页调用手机端的方法

时间:2014-12-03 17:07:05      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:http   io   ar   os   sp   java   on   log   cti   


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<script language="JavaScript" type="text/javascript">


function share2ishijian() {
window.slkj.shareGameResult(‘http://tenapp.XXXX.com/weixin/Test1.aspx‘, ‘http://tenapp.XXXX.com/Weixin/images/glogo1.jpg‘, ‘测一测你能不能当赌神‘);
}
function testFunc()
{
window.location.href="objc://shareIOSGameResultWithTitle:withShareURL:withPicURL:/测试";
window.location.href="objc://shareIOSGameResult:/测试";
}
function testClick(cmd,Title,ShareURL,PicURL)
{
window.location.href="objc://"+cmd+":/"+encodeURIComponent(Title)+":/"+encodeURIComponent(ShareURL)+":/"+encodeURIComponent(PicURL);
}
function testClick2(cmd,parameter1)
{
window.location.href="objc://"+cmd+":/"+parameter1;
}
</script>
<input type="button" onclick="share2ishijian()" value="安卓分享" /><br/>
<input type="button" onclick="testClick(‘shareIOSGameResultWithTitle‘,‘测一测你能不能当赌神‘,‘http://tenapp.XXXX.com/weixin/Test1.aspx‘, ‘http://tenapp.XXXX.com/Weixin/images/glogo1.jpg‘)" value="IOS分享" />
</body>
</html>

网页调用手机端的方法

标签:http   io   ar   os   sp   java   on   log   cti   

原文地址:http://www.cnblogs.com/yeye518/p/4140340.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!