function fingerprint(){
var printerout;
var holdstart = 0;
var holdend = 0;
var hold = 2000;
$(‘.fingerprint‘).bind({‘touchstart‘,function(){
printerout = setTimeout(function(ev){
//执行
},hold);
ev.preventDefault();
},
‘touchend‘:function(){
holdend = new Date();
if (holdend-holdstart<hold) {
clearTimeout(pointerTimeout);
};
}
});
}
时间: 2024-10-01 20:05:54