摘要: fromCharCode fromCharCode() 可接受一个指定的 Unicode 值,然后返回一个字符串。 语法 我们可以根据 Unicode 来输出 "HELLO" 和 "ABC": 我们根据 Unicode 输出‘A-D’ <script> for (let i = 65; i <= 9 阅读全文
posted @ 2022-02-24 10:02 Homegu 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 记录一下js 十六进制得编码解码 "\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f\x72" 解码 function decode(str){ return str.replace(/\\x(\w{2})/g,function(_,$1){ return Strin 阅读全文
posted @ 2022-02-24 09:37 Homegu 阅读(25) 评论(0) 推荐(0) 编辑