网页调用手机端的方法
<!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>