for test:<body>
<iframe id="demo" name="edit"></iframe>
<script language="JavaScript">
<!--
with(edit.document){
designMode="on"
write("<img src='http://fason.nease.net/img/fason.gif'>")
write("<img src='http://www.csdn.net/images/homeimage/csdn.gif'>")
var re=/<img.*?>/ig
if(documentElement.outerHTML.match(re))
alert(documentElement.outerHTML.match(re).length)
}
//-->
</script>
</body>
<iframe id="demo" name="edit"></iframe>
<script language="JavaScript">
<!--
with(edit.document){
designMode="on"
write("<img src='http://fason.nease.net/img/fason.gif'>")
write("<img src='http://www.csdn.net/images/homeimage/csdn.gif'>")
var re=/<img.*?>/ig
if(documentElement.outerHTML.match(re))
alert(documentElement.outerHTML.match(re).length)
}
//-->
</script>
</body>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货