微信分享

<!DOCTYPE html>
  <html>
  <head lang="en">
  <meta charset="UTF-8">
  <title>nativeShare.js Demo</title>
  <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
  <meta name="description" content="demo" />
  <script src="./nativeShare.js"></script>
  <link rel="stylesheet" href="./nativeShare.css"/>
  </head>
  <body>
  <div id="nativeShare"></div>
   
  <script>
  var config = {
  url:'http://blog.wangjunfeng.com',
  title:'分享我的博客',
  desc:'分享我的博客',
  img:'http://www.wangjunfeng.com/img/face.jpg',
  img_title:'分享我的博客',
  from:'分享我的博客'
  };
  var share_obj = new nativeShare('nativeShare',config);
  </script>
  </body>
  </html>

https://github.com/JefferyWang/nativeShare.js

https://github.com/JefferyWang/nativeShare.js/blob/master/demo.html

 

目前仅支持 uc和QQ浏览器

posted @ 2017-07-10 18:03  \面朝阳光/  阅读(124)  评论(0编辑  收藏  举报