随笔分类 - ES6
摘要:1. 箭头函数基本形式 let func = (num) => num; let func = () => num; let sum = (num1,num2) => num1 + num2; [1,2,3].map(x => x * x); 2. 箭头函数基本特点 (1). 箭头函数this为父作
阅读全文
摘要:原文地址:https://wl001.github.io/2018/01/22/ES_const/ const是constant(常量)的缩写,const和 let一样,也是用来声明变量的,但是const是专门用于声明一个常量的,顾名思义,常量的值是不可改变的。 const的特点 1、不可更改 12
阅读全文

浙公网安备 33010602011771号