第一次电话面试问了几个简答的问题,由于当时在回家路上,所以比较潦草就结束了。
-
vue常见指令
v-if/v-else,v-show,v-model,v-for,v-bind,v-on,v-text,v-html,v-cloak
-
computed使用场景
name = firstName + lastName 的场景
-
map和filter的使用
arr.map/filter((val, index, arr)=>{})
-
promise的使用
new Promise((resolve, reject) => {
http(suc => resolve(suc), fail => reject(fail))
})
.then(suc => {})
.catch(fail => {})