zoukankan      html  css  js  c++  java
  • 手机直接分享链接到微信

    <script type="text/javascript">
    var ua = window.navigator.userAgent,
    ua_n = ua.match(/UCBrowser/i),
    ua_i = ua.match(/iPhone|iPod|iPad/i);
    //仅适用非苹果系统的uc浏览器
    if(ua_n && !ua_i){ document.write("<script type="text/javascript" src="http://aa.com/jmo/js/ucw.js"></script>"); } </script>
    ucw.js
    $("#footerinfo").after('<a class="ucsharebtn" style="background: url(http://aa.com/jmo/images/ucweixin.png) no-repeat scroll center center/25px auto rgba(0, 0, 0, 0.7); border-radius: 2px; display: block; height: 40px; margin-top: 5px;  40px; bottom: 70px; position: fixed; right: 15px; z-index: 9;"></a>');
    
    $(".ucsharebtn").click(function(){
        var b=document.querySelector("title").innerHTML;
        var a=location.href;
        ucweb.startRequest("shell.page_share",[b,"",a,"WechatTimeline","","",""])
    });
    学如逆水行舟,不进则退。
  • 相关阅读:
    HDU2203
    POJ3616
    堆排序
    POJ1386+欧拉回路
    快速排序(实现)
    HDU3549+FordFulkerson
    POJ2155
    POJ1195
    mysql案例~关于linux服务器本身的优化问题
    mysql案例~mysql主从复制延迟概总
  • 原文地址:https://www.cnblogs.com/dhsx/p/4980424.html
Copyright © 2011-2022 走看看