VUEは、ダブルクリックイベントとクリックイベントの競合を解決する(シミュレーションダブルクリックをクリック)
441 ワード
//
this.clickTimes++;
if (this.clickTimes === 2) { // 2
this.clickTimes = 0; //
// ...
// ....
}
let _this = this
setTimeout(function () {
if (_this.clickTimes === 1) {
_this.clickTimes = 0; //
// ...
// ....
}
}, 250
)