<date-picker width='140' v-model="input.date"></date-picker>
想用datepicker 选取日期的时候, 依照这个日期去get相关的资料
methods: {
getResult (name) {
this.$http.get(api + `?game=${name}&date=${input.date}`).then(
response => {
this.game_results = response.data
console.log(this.input.date)
},
response => {
// error...
})
},
如果是一般的input[type="date"] 可以直接绑定@change事件, 现在使用datepicker这个套件, 该如何也做到一样的实现呢
求解
相关分类