let welcome = (user, msg) => `${user}, ${msg}`;
console.log(welcome("zhangsan", "welcome you."));
多个参数的箭头函数
最新推荐文章于 2022-12-25 21:33:50 发布
let welcome = (user, msg) => `${user}, ${msg}`;
console.log(welcome("zhangsan", "welcome you."));