<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>
 
 
 
https://www.cnblogs.com/xupeiyu/p/3920055.html

相关文章:

  • 2021-11-04
  • 2021-08-13
  • 2021-11-18
  • 2022-12-23
  • 2021-12-12
  • 2021-09-28
  • 2021-07-04
猜你喜欢
  • 2022-12-23
  • 2020-03-14
  • 2022-02-09
  • 2021-10-19
  • 2022-12-23
  • 2021-08-20
相关资源
相似解决方案