VUE長はイベント要求機能によって実現される
987 ワード
, , , 。 , div click , , 。
//
data ,
data:{
Loop:null,
},
。
showDeleteButton:function (e) {
clearTimeout(this.Loop); // ,
this.Loop = setTimeout(function() {
alert(" ")
}.bind(this), 1000);
},
//
emptyTime:function () {
clearTimeout(this.Loop); // ,
},
, , , 。* {
-webkit-touch-callout:none;
-webkit-user-select:none;
-khtml-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none;
}
このような简単な长押しする事件は书いて、もし更に多くの问题が私に関心を持つならば、みんなの支持に感谢します!!!