String.fromCharCode(parseInt("0x" + RegExp.$1))
解决方案 »
- 折叠菜单的做法
- 求教,请帮忙查查错误
- Fibonacci
- 如何用javascript打开窗口,窗口大小按照自己的要求,导航栏都去掉!
- js(DOM)判断一个结点的属性是否存在
- 请教:js时间表述问题
- Ext4MVC controller中 使用Ext.getCmp()可以赋值页面显示但与下面冲突,使用form.findField()可以赋值不冲突但页面不显示
- webform , vb.net ,如何用javascript实现选中treeview某一结点,就选中其所有子结点?
- 气!!!!!
- Node.js Full Stack - Full time - Australian Company - Contract
- Firefox提示"undefined",IE正常显示!
- javascript输出html标签问题(100分求)
这种字符串其实可以这样获取...
alert(eval('"' + s + '"'))
var s = "\\x41\\x42";
alert(s.replace(re, String.fromCharCode(parseInt("0x" + RegExp.$1))));
弹出的窗口显示的是"BB"。怎么回事?
var s = "\\x41\\x42";
var t = s, arr;
while ((arr = re.exec(s)) != null) {
t = t.replace(arr[0], String.fromCharCode(parseInt('0x' + arr[1])));
}
alert(t);