请教:这段JavaScript字符串如何解密? var _$=["\x44\x4f\x4d\x43\x6f\x6e\x74\x65\x6e\x74\x4c\x6f\x61\x64\x65\x64","\x6f\x6e\x72\x65\x61\x64\x79\x73\x74\x61\x74\x65\x63\x68\x61\x6e\x67\x65","\x44\x4f\x4d\x43\x6f\x6e\x74\x65\x6e\x74\x4c\x6f\x61\x64\x65\x64"] 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这个是十六进制转ascii吧!!<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title></title> <style type="text/css"> textarea { height: 100px; width: 300px; } </style> <script type="text/javascript"> function DeCode() { var arr = new Array(); var put = document.getElementById("put").value.split("\\"); //alert(put[8].replace('x', '')); //alert(put.length); for (var i = 1; i < put.length; i++) { put[i] = put[i].replace('x', ''); arr += String.fromCharCode(parseInt(put[i], 16)); } document.getElementById("out").value = arr; } function ReCode() { var arr = new Array(); var out = document.getElementById("out").value; var hex = document.getElementById("true"); var s = ""; for (var i = 0; i < out.length; i++) { s = out.charCodeAt(i).toString(16); if (hex.checked) { arr += "\\x" + s; } else { arr += new Array(5 - String(s).length).join("0") + s; } } document.getElementById("put").value = arr; } </script></head><body> <textarea id="put" rows="3" cols="50"></textarea><br> <br> <input id="btn1" value="解密" onclick="DeCode()" type="button"> <input id="btn2" value="加密" onclick="ReCode()" type="button"><br> <br> <textarea id="out" rows="3" cols="50"></textarea> <input checked="checked" id="true" type="checkbox">是否启用\x加密<br></body></html> 直接输出_$变量var _$=["\x44\x4f\x4d\x43\x6f\x6e\x74\x65\x6e\x74\x4c\x6f\x61\x64\x65\x64","\x6f\x6e\x72\x65\x61\x64\x79\x73\x74\x61\x74\x65\x63\x68\x61\x6e\x67\x65","\x44\x4f\x4d\x43\x6f\x6e\x74\x65\x6e\x74\x4c\x6f\x61\x64\x65\x64"]alert(_$); 求助:请帮忙推荐几个可以动态生成业务流程图的JS框架 如何学习jquery的面向对象? 页面加载onload事件后,能不能修改? 根据多选按钮动态添加select中的value值! 一个链接第一次是广告页面,第二次点击才是正式页面如何实现 如何用script实现滚动<新人求助> 请大家过来帮个忙! asp.net 如何调用self host的 wcf service 一个页面中放置多个同样的JS组件,如何避免冲突?HTC编程就能避免吗? 如何在JAVASCIRPT里面把一个已经设置为readonly的TEXT激活呢? 怎么让两个table之间无缝连接 如何阻止framer breaker?
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<style type="text/css">
textarea
{
height: 100px;
width: 300px;
}
</style> <script type="text/javascript">
function DeCode() {
var arr = new Array();
var put = document.getElementById("put").value.split("\\");
//alert(put[8].replace('x', ''));
//alert(put.length);
for (var i = 1; i < put.length; i++) {
put[i] = put[i].replace('x', '');
arr += String.fromCharCode(parseInt(put[i], 16));
}
document.getElementById("out").value = arr;
} function ReCode() {
var arr = new Array();
var out = document.getElementById("out").value;
var hex = document.getElementById("true");
var s = "";
for (var i = 0; i < out.length; i++) {
s = out.charCodeAt(i).toString(16);
if (hex.checked) {
arr += "\\x" + s;
} else {
arr += new Array(5 - String(s).length).join("0") + s;
}
}
document.getElementById("put").value = arr;
}
</script>
</head>
<body>
<textarea id="put" rows="3" cols="50"></textarea><br>
<br>
<input id="btn1" value="解密" onclick="DeCode()" type="button">
<input id="btn2" value="加密" onclick="ReCode()" type="button"><br>
<br>
<textarea id="out" rows="3" cols="50"></textarea>
<input checked="checked" id="true" type="checkbox">是否启用\x加密<br>
</body></html>
alert(_$);