数组:
es6:
some
every
includes
from
reduce
findIndex
find
for of
array.from:
有length属性,否则[]
属性为数字或字符串数字,否则undefined
arr.entries(),keys(),values()
数组跳出:
for of
foreach +try catch
for i++
for in 的问题:
属性为字符串
顺序问题
遍历所有可枚举,prototype会遍历
字符操作:
charAt,charCodeAt,fromCharCode
字符串提取:substr,substring ,slice
位置索引:indexOf ,lastIndexOf
大小写转换:toLowerCase,toUpperCase
模式匹配:match,search,replace,split
其他操作:concat,trim,localeCompare
keep-alive
meta
include
exclue
git
创建远程分支
$ git checkout -b dev
$ git push origin dev:dev
git checkout -b dev
git push --set-upstream origin dev
删除远程分支
$ git push origin :dbg_lichen_star
$ git push origin --delete dbg_lichen_star
vue坑:
改数组:
set
splice
改对象:
set
object.assign
nextTick:
等待DOM更新之后再进行操作
监听对象obj.a + deep
或compute:{a(){return obj.a}}
css,scoped
深拷贝:
遍历赋值
parse
assign({},obj)
element更改主题:
新建element-variables.scss,main.js引入
npm i element-theme -g
npm i element-theme-chalk -D
根目录下会产生element-variables.scss,更改之
hack:
_ie6
+ie7
*IE6/7
9:6+