代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script>
function charCodeAt(exp) {
let c, i;
for (i = 0; i < exp.length; i++) {
c = exp.charCodeAt(i);
switch (c) {
case 0x22:
console.log('c=' + c)
console.log('0x22=' + exp[i])
break // 匹配 "
case 0x27:
console.log('c=' + c)
console.log('0x27=' + exp[i])
break // 匹配 '
case 0x60:
console.log('c=' + c)
console.log('0x60=' + exp[i])
break // 匹配 `
case 0x28:
console.log('c=' + c)
console.log('0x28=' + exp[i])
break // 匹配 (
case 0x29:
console.log('c=' + c)
console.log('0x29=' + exp[i])
break //匹配 )
case 0x5B:
console.log('c=' + c)
console.log('0x5B=' + exp[i])
break // 匹配 [
case 0x5D:
console.log('c=' + c)
console.log('0x5D=' + exp[i])
break // 匹配 ]
case 0x7B:
console.log('c=' + c)
console.log('0x7B=' + exp[i])
break // 匹配 {
case 0x7D:
console.log('c=' + c)
console.log('exp[i]=' + exp[i])
break // }
case 0x5C: // 匹配 \
console.log('c=' + c)
console.log('0x5C=' + exp[i])
break
case 0x2f: // 匹配 /
console.log('c=' + c)
console.log('0x5C=' + exp[i])
break
case 0x7C: // 匹配 pipe
console.log('c=' + c)
console.log('0x7C=' + exp[i])
debugger;
break
}
}
}
charCodeAt(`"'()[]{} '\\ \/ pipe`);
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。