会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
小川丶
其实都明白....
博客园
首页
新随笔
联系
管理
订阅
2013年4月1日
js 中文转义
摘要: javascript:<script> test = "转义字符" str = "" for( i=0;i<test.length; i++ ) { temp = test.charCodeAt(i).toString(16); str += "\\u"+ new Array(5-String(temp).length).join("0") +temp; } document.write (str) alert(eval("'"+str+"'"
阅读全文
posted @ 2013-04-01 09:27 小川丶
阅读(4405)
评论(0)
推荐(0)
编辑
公告