• Line分享链接


    function Test(a) {       

      var title = document.title;    //获取标题        

      var url = window.location.href;            

      //var url = "http://melaleuca2017.liontravel.com.cn/html/index.html";            

      var uui = "http://tinyurl.com/lersp75";      //链接网址      

      //var k = "https://lineit.line.me/share/ui?url=" + encodeURIComponent(uui + "%0D%0A" + "KKKKKKKKKKKK");            

      var href = "";            

      //行動裝置語法            

      if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {                

      href = "http://line.naver.jp/R/msg/text/?" + title + "%0D%0A" + uui + "%0D%0A凱尼斯旅行社有限公司%0D%0A" + url;                

      window.open(href, "_blank", "toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=no")                

      //$(a).attr("href", href);                

      //window.location.href = href;

      } else {                

      // 網頁版語法      

      //网页版配置网址需要编译,需要在html的

      //<meta name="url" content="http://10.19.12.118:8083/Html/TestLine.html" />
         //<meta name="type" content="website" />
         //<meta name="title" content="Your Website Title" />
         //<meta name="description" content="Your description" />
         //<meta name="image" content="http://10.19.12.118:8083/images/u159.png" />          

      href = "https://lineit.line.me/share/ui?url=" + encodeURIComponent(url);                

      window.open(href, "_blank", "toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=no")                

      //$(a).attr("href", href);                

      //window.location.href = href;            

      }        

    }

  • 相关阅读:
    Log4Net记录到MySql
    创建快照
    grep的用法(CentOS7)及有关正则表达式的使用
    samba
    mkdir
    raid0和raid5的 实验过程
    route
    source和sh执行脚本时的差异
    echo命令的简单用法和实例
    smbpasswd和pdbedit
  • 原文地址:https://www.cnblogs.com/qhy1277/p/6924296.html
Copyright © 2020-2023  润新知