demo.html 670 B

123456789101112131415161718192021222324252627282930
  1. <html lang="zh-CN">
  2. <head>
  3. <title>test share</title>
  4. <script src="../js/lib/jquery.min.js" ></script>
  5. <script src="../js/share/weixin.js" ></script>
  6. <script src="../js/dever.js" ></script>
  7. </head>
  8. <body>
  9. <a>分享</a>
  10. </body>
  11. <script>
  12. $(function()
  13. {
  14. var uid = -1;
  15. var project = 7;
  16. var url = 'http://192.168.33.10/wechat/share/?api.';
  17. var param = {
  18. title : '大家好',
  19. img : 'https://www.baidu.com/img/superlogo_c4d7df0a003d3db9b65e9ef0fe6da1ec.png?where=super',
  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>