=3){ return false; } pic += (pic?'||':'') + encodeURIComponent(a.src); }); summary = encodeURIComponent(summary.innerText.replace(/\r|\n|\t/g,'').replace(/ +/g,' ').replace(//g,'').substr(0,80)); } var single_img ='http://yogor.cn/wp-content/uploads/2020/07/分配生名额.png'; pic = pic.replace(single_img+'||',''); pic = pic.replace(single_img,''); pic = single_img+(pic?'||':'')+pic; var link =typeof settings.link!='undefined'?settings.link:''; if(!link||link.length<=0){return;} if(!/summary/.test(link) && summary) { title = title + ': ' + summary + '.. '; } link = link.replace("{url}",url).replace("{title}",title).replace("{summary}",summary).replace("{img}",pic); var iWidth=typeof settings.width!='undefined'?settings.width: 450; var iHeight=typeof settings.height!='undefined'?settings.height: 450; var iTop = (window.screen.height-30-iHeight)/2; //获得窗口的垂直位置; var iLeft = (window.screen.width-10-iWidth)/2; //获得窗口的水平位置; window.open(link, 'share', 'height='+iHeight+',innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft+',menubar=0,scrollbars=1,resizable=1,status=1,titlebar=0,toolbar=0,location=1'); } }

本文由友果分享提供。友果培优,复旦名师执教,小学/初中/高中。联系电话/微信:17751295132

在线咨询
在线咨询
热线电话
QQ客服