大飞_dafei

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

随笔分类 -  ES

ECMAScript全称
JSHint
摘要:JSHint JSHint: Incompatible values for the 'esversion' and 'es3' linting options. (0% scanned).(E059) esnext正在弃用"esversion": 6 去掉 {"es3": true, "esnex 阅读全文

posted @ 2021-12-22 11:30 大飞_dafei 阅读(131) 评论(0) 推荐(0) 编辑

es6 语法
摘要:es6 语法 01) 反引号使用变量 `${ let daFei = "test_反引号"; let foo = "hello"; let bar = "world"; let str = `${daFei}/${foo}/${bar}`; console.log(str); 阅读全文

posted @ 2020-08-05 14:55 大飞_dafei 阅读(80) 评论(0) 推荐(0) 编辑

es6 模块 export 与 import _fei
摘要:es6 模块 export 与 import export default 命令 在一个文件或模块中,export、import 可以有多个,export default 仅有一个。 export default 中的 default 是对应的导出接口变量。 通过 export 方式导出,在导入时要 阅读全文

posted @ 2020-05-03 06:46 大飞_dafei 阅读(87) 评论(0) 推荐(0) 编辑

高阶函数 filter map reduce _fei
摘要:高阶函数 filter map reduce // 高阶函数 filter map reduce 用es6语法写demo // 过滤小于20的值,返回布尔值 true 或者 false // 循环数组中的每一个元素 //接受一个函数作为参数,这个函数作为一个累加器,从左到右遍历整个类型数组,最后返回 阅读全文

posted @ 2020-05-01 17:50 大飞_dafei 阅读(104) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示