1.用concat代替push,unshift,splice向数组中插入元素 2. 面对大量的if-else语句,封装成对象处理 3.箭头函数的使用 4. ' || ' 的使用( 可以用来避免调用undefined参数的属性时报错 )