📅  最后修改于: 2022-03-11 15:02:03.295000             🧑  作者: Mango
const message = 'This is a test'
var args = message.split(' ');
console.log(args[0]) // Responds "This"
console.log(args[1]) // Responds "is"
console.log(args[2]) // Responds "a"
console.log(args[3]) // Responds "test"