vuex里面有a.js文件(采用了modules) a文件mutations里面有 2個(gè)方法 add和plus add 調(diào)用plus方法 thi...
sort的比較函數(shù)有兩個(gè)默認(rèn)參數(shù)攒岛,要在函數(shù)中接收這兩個(gè)參數(shù),這兩個(gè)參數(shù)是數(shù)組中兩個(gè)要比較的元素胞锰,通常我們用 a 和 b 接收兩個(gè)將要比較的元素:...
子組件child:<template> 這里是子組件 // 作用域插槽 </template> export default { ...
import errorImgComponent from './error-img.vue' const errorImg ={ inst...
<!-- parent --> <template> 我是父親, 對(duì)兒子說: {{sthGiveChild}} <Child v-model=...
一種 jQuery.extend({ myAlert2:function (str1) { alert(str1); }, ...
單項(xiàng)固定寬度 利用flex布局不用寫寬度 div.scroll ul li .scroll{ width:300px; overflow-y: ...
要寫在main.js 中new Vue({}) 之前灾锯,否則初始化沒效果
安裝 url-search-params-polyfill 兼容ajax 和 安裝 babel-polyfill 兼容 es6 promise ...