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