可以直接运行的网页代码(很方便测试用)
function runEx(){ var winEx=open();winEx.document.open("text/html", "replace")winEx.document.write(unescape(event.srcElement.parentElement.children[2].value)); winEx.document.close(); } 代码片段如下:
·
<SCRIPT>
function runEx(){
var winEx=open();
winEx.document.open("text/html", "replace")
winEx.document.write(unescape(event.srcElement.parentElement.children[2].value));
winEx.document.close();
}
</SCRIPT>
<TABLE width=400 border=0>
<TR><TD align=absBottom>
<IMG src="http://blog.csdn.net/images/PoweredByAsp.Net.gif">代码片段如下:<BR><TEXTAREA style="WIDTH: 100%; BACKGROUND-COLOR: #ffffff" name=textfield rows=15>
</TEXTAREA><BR><INPUT οnclick=runEx() type=button value=运行此代码 name=Button>
更多推荐
已为社区贡献2条内容
所有评论(0)