标签:
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);
};
}
});
}
标签:
原文地址:http://www.cnblogs.com/hesuy/p/4342382.html