var time = 0;//初始化起始时间
$("#imgDiv").on('touchstart', '.previewImg', function(e){
e.stopPropagation();
var index=$("#imgDiv").find(".image").index($(this));
time = setTimeout(function(){
showCloseImg(index);
}, 500);//这里设置长按响应时间
});
$("#imgDiv").on('touchend', '.previewImg', function(e){
e.stopPropagation();
clearTimeout(time);
});
function showCloseImg(index){
var e=$("#imgDiv").find(".image").eq(index);
$(".deleteImg").hide();
e.next().show();
}
var time = 0;//初始化起始时间 $("#imgDiv").on('touchstart', '.previewImg', function(e){ e.stopPropagation(); var index=$("#imgDiv").find(".image").index($(this)); time = setTimeout(function