JavaScript TO HTML 转换

<html>
<head>
<title>JavaScript TO HTML 转换</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="https://www.jb51.net/style.css" type="text/css" />
</head>

<body>
<div>JavaScript TO HTML 转换</div>
<div>
 <div>请在下边输入JavaScript代码:</div>
 <div>
  <textarea rows="15" ondblclick="this.select();oResult.createTextRange().execCommand('Copy')" onpropertychange="rechange()" onChange="rechange()"></textarea>
 </div>
 <BR />
 <div>以下是经过转换后的HTML代码:</div>
 <div>
  <textarea rows="15" ondblclick='this.select();this.createTextRange().execCommand("Copy")'></textarea>
 </div>
</div>
<SCRIPT LANGUAGE="JavaScript">
<!--
function rechange()
{
 Re.value=oResult.value.replace(/document.writeln\("/g,"").replace(/"\);/g,"").replace(/\\\"/g,"\"").replace(/\\\'/g,"\'").replace(/\\\//g,"\/").replace(/\\\\/g,"\\")
}
//-->
</SCRIPT></body></html>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wjjxjd.html