// 编码转字符 let value = String.fromCharCode(72,69,76,77); console.log(value); // 字符转编码 let value1 = 'h'; console.log(value1.charCodeAt());