zoukankan      html  css  js  c++  java
  • 网页调用手机端的方法


    <!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>

  • 相关阅读:
    位置控制
    Scaleform结合C++编程
    使用定点缓存进行绘制
    纹理
    动态规划:背包问题
    希尔排序
    折半插入排序
    快速排序
    上楼梯算法
    归并排序
  • 原文地址:https://www.cnblogs.com/yeye518/p/4140340.html
Copyright © 2011-2022 走看看