240 发简信
IP属地:广西
  • css3 横向滚动条

    单项固定宽度 利用flex布局不用写宽度 div.scroll ul li .scroll{ width:300px; overflow-y: ...

    0.7 3298 1 51
  • vuex mutations方法互调

    vuex里面有a.js文件(采用了modules) a文件mutations里面有 2个方法 add和plus add 调用plus方法 thi...

  • Vuex

    getter(一个参数改变影响到了其他的数据的变化) 的作用我觉得是为了渲染另外一种数据,根据你的state里面的值,state更改响应的get...

    0.6 521 0 50
  • vue router.beforeEach

    要写在main.js 中new Vue({}) 之前,否则初始化没效果

    0.4 793 0 49
  • ios css3 禁止长按图片保存

    -webkit-touch-callout: none;

    0.4 2255 0 49
  • 2018-06-19

    commit=>mutations,用来触发同步操作的方法。 dispatch =>actions,用来触发异步操作的方法。

    0.9 556 0 50
  • vue-cli 自己定义rem

    1、在assets中建立js文件,新建rem.js文件,将计算rem方法写入rem.js文件当中 如750设计稿 rem.js文件为 (func...

    0.5 936 0 49
  • model用法

    <!-- parent --> <template> 我是父亲, 对儿子说: {{sthGiveChild}} <Child v-model=...

    0.5 818 0 50
  • vue 自定义全局组件组件写法

    import errorImgComponent from './error-img.vue' const errorImg ={ inst...

    0.6 773 0 51