mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-19 18:24:51 +08:00
8 lines
157 B
JavaScript
8 lines
157 B
JavaScript
// 编码转字符
|
|
let value = String.fromCharCode(72,69,76,77);
|
|
console.log(value);
|
|
|
|
// 字符转编码
|
|
let value1 = 'h';
|
|
console.log(value1.charCodeAt());
|