function getval(val){ var a1=val.replace(/<\/?.+?>/g,""); var a2=a1.replace(/ /g,""); return a2; } //document.write('http://wxzl.cogonline.com/html/CeShiZhuanLanYi/WenZhang/YiShiBaoDao/439.html'); wx.config({ debug: false, appId: 'wx85d01b1d7184c45d', timestamp: 1741557370, nonceStr: 'uFjRunFmUHSD7OzR', signature: '953fbc50c6a8f8d4552ce12f28ccf4f2116f1424', jsApiList: [ 'checkJsApi', 'onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo' ] }); wx.ready(function () { wx.onMenuShareTimeline({ title: '【公开课】董若凡教授精读经典文献—维持治疗篇', link: 'http://wxzl.cogonline.com/html/CeShiZhuanLanYi/WenZhang/YiShiBaoDao/439.html', imgUrl: 'http://wxzl.cogonline.com/wp/logo.jpg', success: function () { //alert('fx-ok'); }, cancel: function () { //alert('fx-no'); } }); wx.onMenuShareAppMessage({ title: '【公开课】董若凡教授精读经典文献—维持治疗篇', link: 'http://wxzl.cogonline.com/html/CeShiZhuanLanYi/WenZhang/YiShiBaoDao/439.html', imgUrl: 'http://wxzl.cogonline.com/wp/logo.jpg', desc: getval(''), success: function () { //alert('fx-ok'); }, cancel: function () { //alert('fx-no'); } }); }); wx.error(function (res) { //alert(location.href.split('#')[0]); //alert('err:'+res.errMsg); }); if(location.href.indexOf("?") >= 1 ){ location.href=location.href.substring(0,location.href.indexOf("?")); }