zoukankan      html  css  js  c++  java
  • 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;            

      }        

    }

  • 相关阅读:
    python 协程
    python中基于descriptor的一些概念
    python remove del pop 的区别
    python 装饰器 和面向切面编程(AOP)
    python yield详解
    Python的列表推导式,字典推导式,集合推导式使用方法
    python 垃圾回收机制
    (5) etcd 介绍、经典适用场景、安装、配置、测试
    grafana 安装配置
    open-falcon 安装配置
  • 原文地址:https://www.cnblogs.com/qhy1277/p/6924296.html
Copyright © 2011-2022 走看看