console
function decode()
{
var str = secret.value;
var arr = str.split(",");
var r = "";
for (var i = 0; i < arr.length; i++)
{
var code = parseInt(arr[i]);
r += String.fromCharCode(code);
}
secret.value = r;
}
<body>
<div class="top" style="height:70px;border-bottom:1px solid #ddd;">
<img class="logoIndex" height="60" src="https://www.zenitour.com/img/logoIndex.png" style="margin-left:10px;margin-top:5px;">
</div>
<div class="content" style="text-align:center;margin-top:50px;height: 78%;">
<h1> 解密 </h1>
<input type="text" id="secret" />
<input type="button" value="解密" onclick="decode();">
</div>
<div id="bottom" style="text-align:center;border-top:1px solid #ddd;">
<span class="centerspan" style="font-size:10px">Copyright © 2017 Zenitour lnc All Rights Reserved 版权所有-哲途教育 渝ICP备13002955号-2</span>
</body>
html,body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}