摘要: <div @touchmove.prevent> <mt-datetime-picker ref="picker" :type="factor.attrs.type || 'date'" :startDate="startDate" :endDate="factor.endDate" v-model 阅读全文
posted @ 2018-08-29 17:40 xiaoroad 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 最外层wrapper的css属性需要加 overflow-y: scroll; /* has to be scroll, not auto */ -webkit-overflow-scrolling: touch; 阅读全文
posted @ 2018-07-17 11:33 xiaoroad 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1. 自定义部分rule的message import VeeValidate, { Validator } from 'vee-validate' // update custom messages Validator.dictionary.merge({ en: { messages: { re 阅读全文
posted @ 2018-05-03 15:11 xiaoroad 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 在 webpack-dev-server 的配置中添加disableHostCheck: true 阅读全文
posted @ 2018-04-28 14:20 xiaoroad 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Vue.prototype.$eventHub = new Vue(); this.$eventHub.$emit('update:someValue', this.myValue); this.$eventHub.$on('update:someValue', arg => this.wrappe 阅读全文
posted @ 2018-04-23 14:51 xiaoroad 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 使用version3版本, const myDb = db.db('YourDatabase') // 加这句 myDb.collection('YourDatabase')...... 或者, mongodb版本降级到version2, npm install mongodb@2.2.33 --s 阅读全文
posted @ 2018-04-23 13:52 xiaoroad 阅读(150) 评论(0) 推荐(0) 编辑
摘要: common.js中个方法: foo运行于demo.vue中 阅读全文
posted @ 2018-04-17 15:34 xiaoroad 阅读(115) 评论(0) 推荐(0) 编辑
摘要: spawn( command, args, options )中options配置shell为true 参考:https://github.com/nodejs/node-v0.x-archive/issues/2318 阅读全文
posted @ 2017-10-30 11:30 xiaoroad 阅读(712) 评论(0) 推荐(0) 编辑
摘要: 生成一个递增数值数组 new Array(i).map((current, index) => index)出来的结果是[undefined * i]; 解决办法: or or 阅读全文
posted @ 2017-08-11 14:36 xiaoroad 阅读(885) 评论(0) 推荐(0) 编辑
摘要: 1. options, emulateJSON: true 2. FormData reference: https://github.com/pagekit/vue-resource/issues/267 阅读全文
posted @ 2017-06-29 11:25 xiaoroad 阅读(1208) 评论(0) 推荐(0) 编辑