标签:type cti val 类方法 default bsp 默认 常量 extend
let: 块级作用域变量声明
const: 常量声明
class: 声明类,extend: 类的继承
supper: 指代引用父类,调用父类方法,this为父类对象,可supper()后,修改父类信息来改变输出
arrow function: 箭头函数,函数中this表示自己,而不是全局
templet string: 模版‘‘,代替+连接字符串
destructuring: 解构,{key:value}=> {key}
default: 默认值,可给函数的参数赋默认值function(test=‘value‘),rest: 风格语法function(...types),types指代所有参数,相当argument
标签:type cti val 类方法 default bsp 默认 常量 extend
原文地址:http://www.cnblogs.com/maoriaty/p/7905861.html