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/482.html'); wx.config({ debug: false, appId: 'wx85d01b1d7184c45d', timestamp: 1714856853, nonceStr: 'nyTOOrtDFwIj5onU', signature: '4785db586a5b9bd4988fbedc3cd4e630aa5a341e', jsApiList: [ 'checkJsApi', 'onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo' ] }); wx.ready(function () { wx.onMenuShareTimeline({ title: '低级别浆液性卵巢癌的专家共识(2020年版)', link: 'http://wxzl.cogonline.com/html/CeShiZhuanLanYi/WenZhang/YiShiBaoDao/482.html', imgUrl: 'http://wxzl.cogonline.com/wp/logo.jpg', success: function () { //alert('fx-ok'); }, cancel: function () { //alert('fx-no'); } }); wx.onMenuShareAppMessage({ title: '低级别浆液性卵巢癌的专家共识(2020年版)', link: 'http://wxzl.cogonline.com/html/CeShiZhuanLanYi/WenZhang/YiShiBaoDao/482.html', imgUrl: 'http://wxzl.cogonline.com/wp/logo.jpg', desc: getval('制定者:中国医师协会微无创医学专业委员会妇科肿瘤专业委员会(学组)中国优生科学协会生殖道疾病诊治分会中国优生科学协会肿瘤生殖学分会出处:中国癌症防治杂志2020年4月第12卷第2期'), 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("?")); }