test.html 794 B

123456789101112131415161718192021222324252627282930
  1. <html lang="zh-CN">
  2. <head>
  3. <title>test share</title>
  4. <script src="http://cm.5dev.cn/dever_package/script/assets/lib/jquery/jquery.min.js" ></script>
  5. <script src="http://cm.5dev.cn/dever_package/script/assets/lib/share/weixin.js" ></script>
  6. <script src="http://cm.5dev.cn/dever_package/script/assets/dever/share.js" ></script>
  7. </head>
  8. <body>
  9. <a>分享</a>
  10. </body>
  11. <script>
  12. $(function()
  13. {
  14. var uid = -1;
  15. var project = 25;
  16. var url = 'http://cm.5dev.cn/wechat/share/?api.';
  17. var param = {
  18. title : '大家好',
  19. img : 'http://card_res.5dev.cn/1/2018/05/31/89f88317d56d94ff4e43b67edb019cee.jpg',
  20. desc : '大家好',
  21. url : location.href,
  22. };
  23. var button = false;
  24. Dever.Share().Init(uid, project, url, param, button);
  25. })
  26. </script>
  27. </html>