摘要:<!--slice()剪切数组 var num = [0,1,2,3,4,5,6,7,8,9,2] var newNum = num.slice(0,6) 打印出来 的新数组newNum[0,1,2,3,4,5] 而这里的currentPage为el-pagination组件绑定的当前展示的页码 p
阅读全文
|
随笔分类 - vue基础
vue第一阶段
摘要:<!--slice()剪切数组 var num = [0,1,2,3,4,5,6,7,8,9,2] var newNum = num.slice(0,6) 打印出来 的新数组newNum[0,1,2,3,4,5] 而这里的currentPage为el-pagination组件绑定的当前展示的页码 p
阅读全文
摘要://页面显示 <div id="example"> <my-component msg="hello world!" ></my-component> </div> // 注册 Vue.component('my-component', { _isComponent:true, props: ['m
阅读全文
|