var doc;
doc = document.getElementById("iframeautoheight").contentDocument;
doc就是已经得到的dom
我想用jquery操作doc里面的dom 比如有个id为data的元素alert(doc.getElementById("data").innerHTML);//用原生js可以这样得到
alert($("data").html());//但是后面的操作用到了很多jquey,所以想用这种方式
doc = document.getElementById("iframeautoheight").contentDocument;
doc就是已经得到的dom
我想用jquery操作doc里面的dom 比如有个id为data的元素alert(doc.getElementById("data").innerHTML);//用原生js可以这样得到
alert($("data").html());//但是后面的操作用到了很多jquey,所以想用这种方式
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货