<script type="text/javascript">// <![CDATA[

function runCode(obj) {
var winname = window.open('', "_blank", '');
winname.document.open(
'text/html', 'replace');
winname.document.write(obj.value);
winname.document.close();
}
// ]]></script>
<p>
<textarea rows="10" id="code1" style="width: 80%;">
这里是要输入的内容
</textarea><br />
<input onclick="runCode(document.getElementById('code1'))" value="运行" type="button" /></p>

 

 

相关文章:

  • 2021-07-06
  • 2021-07-17
  • 2022-12-23
  • 2021-10-19
  • 2021-11-18
  • 2021-11-19
  • 2021-06-06
  • 2021-10-04
猜你喜欢
  • 2021-08-13
  • 2021-11-02
  • 2021-07-09
  • 2022-02-16
  • 2021-04-21
  • 2022-03-04
  • 2021-11-29
相关资源
相似解决方案