Vue 图书管理案例:包含过滤器自定义指令计算属性侦听器生命周期知识点
必要知识点: => 箭头函数:函数里面的this指向父级作用域 this.books.some(function(item){})//里面的this指向window this.books.some((item)=>{})//指向父级作用域 2.filter返回的是数组类型 3.forEach,filter,some 的区别和使用场景: 来说明图书管理遍历为何用some 主要是提高性能 var arr = ['pink', 'blue', 'red', 'green']; forEach迭代 遍历 arr.forEach(function(va
下载地址
用户评论