摘要: es6 中没有 this、this 是从外部获取、不能使用 new、没有 arguments、没有原型和 super 箭头函数相当于匿名函数,简化了函数定义。箭头函数有两种写法,当函数体是单条语句的时候可以省略 {} 和 return。另一种是包含多条语句,不可以省略 {} 和 return。箭头函 阅读全文
posted @ 2022-09-27 11:05 CodeFan* 阅读(47) 评论(0) 推荐(0) 编辑