Rumah  >  Soal Jawab  >  teks badan

Mengapakah php secara automatik mengumpul kod tag iframe dalam js apabila mengumpul artikel WeChat?

微信截图_20170718173201.png

采集出来的代码

<p id='shipin'><iframe id='aaa' height=300 width=100% src="http://v.qq.com/iframe player.html?vid=vid.replace(/^[suFEFFxA0]+|[suFEFFxA0]+$/g,"");    

a.removeAttribute('src');    

var obj = window.__getVideoWh(a ),    

mydiv = document.createElement('img');    

mydiv.className = "img_loading";    

mydiv.src="data:image/gif;base64,iVAAAADUEASUW0KGVAAAADUASUw0KGVAAABOR ImWNgYGBgAAAABQABh6FO1AAAABJRU5ErkJggg==";    

mydiv.setAttribute ("data-vid",vid);    

mydiv.style.cssText = "lebar: " + obj.w + "px !important;height: " + obj.h + "px !important;";    

a .style.display = "tiada";    

insertAfter(mydiv,a);    

a.style.cssText += ";width: " + obj.w + "px !important;height: " + obj.h + "px !important;";    

a.setAttribute("width",obj.w);    

a.setAttribute("height",obj.h);    

a.setAttribute("j.vh .vh);    

a.setAttribute("data-vw",obj.vw);    

a.setAttribute("src",location.protocol+"//v.qq.com/iframe/player.html?&auto =0" frameborder=0 allowfullscreen></iframe></p>    Iframe ) {    

var a = iframe[i];    

var src_ = a.getAttribute('src')||a.getAttribute('data-src')||"";    

(! s)*://v.qq.com/iframe/(pratonton|pemain).html?/.test(src_)){    

teruskan;    

}    

var vid = getQuery("vid",src_) ;    

jika(!vid){    

teruskan;    

}    

vid=vid.replace(/^[suFEFFxA0]+|[suFEFFxA0]+$/g "); src');    

var obj = window.__getVideoWh(a),    

mydiv = document.createElement('img');    

mydiv.className = "img_loading";    gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAAABJRU5ErkJggg==";    

mydiv.setAttribute("data vid",);

mydiv.style.cssText = "lebar: " + obj.w + "px !important;height: " + obj.h + "px !important;";

a.style.display = "tiada"; insertAfter(mydiv,a);

a.style.cssText += ";width: " + obj.w + "px !important;height: " + obj.h + "px !important;"; setAttribute("width",obj.w);

a.setAttribute("height",obj.h);

a.setAttribute("data-vh",obj.vh); data-vw",obj.vw);

a.setAttribute("data-src",location.protocol+"//v.qq.com/iframe/player.html?vid="+ vid + "&width=" +obj.vw+"&height="+obj.vh+"&auto=0");

}

})(); adalah video, ia dipaparkan Apabila tiada video, ia dikumpul dan ia adalah kod di atas

牵佑手--不弃.牵佑手--不弃.2622 hari yang lalu3229

membalas semua(1)saya akan balas

  • PHP中文网

    PHP中文网2017-07-19 10:53:23

    Anda boleh menggunakan phpquery untuk memproses kandungan yang dikumpul,,,

    balas
    1
  • Batalbalas