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