现在的位置: 首页 > 综合 > 正文

运行代码的代码

2013年12月07日 ⁄ 综合 ⁄ 共 176字 ⁄ 字号 评论关闭

<script>
function Preview()
{
  var TestWin=open('');
  TestWin.document.write(code.value);

}
</script>

<textarea id=code cols=60 rows=15></textarea>
<br>
<button onclick=Preview() >运行</button> 

抱歉!评论已关闭.