摘要: Array.prototype.reduce() 语法:arr.reduce(callback,[initialValue]) reduce() 方法对累加器和数组的每个值 (从左到右)应用一个函数,以将其减少为单个值。 Array.prototype.find() arr.find(callbac 阅读全文
posted @ 2017-03-20 18:09 提佰萬 阅读(151) 评论(0) 推荐(0) 编辑
摘要: ####Vue实例vue构造器:var vm = new Vue({ // 选项})扩展vue构造器:var MyComponent = Vue.extend({ // 扩展选项})属性和方法:var vm = new Vue({ el: "#example", data: data, comput 阅读全文
posted @ 2017-03-20 15:26 提佰萬 阅读(1487) 评论(0) 推荐(0) 编辑