摘要: ES6 允许使用 箭头 (=>)定义函数 声明一个函数 let fn() =function (){ } let fn=(a,b)=>{ return a+b; } //调用函数 let result =fn(1,2); console.log(result); 控制台输出 箭头函数声明特性: 1. 阅读全文
posted @ 2022-03-01 15:22 Ynline 阅读(95) 评论(0) 推荐(0)