![240](https://upload.jianshu.io/users/upload_avatars/9290438/ac955e8b-4200-4dec-9163-331102218953.png?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
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ì)兒子說(shuō): {{sthGiveChild}} <Child v-model=...
一種 jQuery.extend({ myAlert2:function (str1) { alert(str1); }, ...
單項(xiàng)固定寬度 利用flex布局不用寫(xiě)寬度 div.scroll ul li .scroll{ width:300px; overflow-y: ...
要寫(xiě)在main.js 中new Vue({}) 之前扰她,否則初始化沒(méi)效果
安裝 url-search-params-polyfill 兼容ajax 和 安裝 babel-polyfill 兼容 es6 promise ...