养生 装修 购物 美食 感冒 便秘 营销 加盟 小吃 火锅 管理 创业 搭配 减肥 培训 旅游

微信文章分享以后 会有标题和图片

时间:2024-10-24 22:24:22

微信分享文章会有标题和图片。

工具/原料

Dreamever微信

方法/步骤

1、在boby和head之间添加下面的代码即可<script>docum娣定撰钠ent.addEventL足毂忍珩istener('WeixinJSBridgeReady',functiononBridgeReady(){window.shareData={"timeLineLink":"这里是一个链接","sendFriendLink":"这里是一个链接","weiboLink":"这里是一个链接","tTitle":"这里是title","tContent":"这里是显示的内容","fTitle":"这里是title","fContent":"这里是显示的内容","wContent":"这里是显示的内容"};//发送给好友WeixinJSBridge.on('menu:share:appmessage',function(argv){WeixinJSBridge.invoke('sendAppMessage',{"img_url":"img/logo_white.png","img_width":"401","img_height":"275","link":window.shareData.sendFriendLink,"desc":window.shareData.fContent,"title":window.shareData.fTitle},function(res){_report('send_msg',res.err_msg);})});//分享到朋友圈WeixinJSBridge.on('menu:share:timeline',function(argv){WeixinJSBridge.invoke('shareTimeline',{"img_url":"img/logo_white.png","img_width":"401","img_height":"275","link":window.shareData.timeLineLink,"desc":window.shareData.tContent,"title":window.shareData.tTitle},function(res){_report('timeline',res.err_msg);});});},false)</script>

微信文章分享以后 会有标题和图片

微信文章分享以后 会有标题和图片

微信文章分享以后 会有标题和图片

© 一点知识