📅  最后修改于: 2022-03-11 15:04:07.309000             🧑  作者: Mango
let input = "words".split("");
let output = [];
input.forEach(letter => {
output.push(letter.charCodeAt(0))
});
console.log(output) //[119, 111, 114, 100, 115]