轻击 p元素不放(大约一秒),隐藏/其他操作
$("p").on("taphold",function(){
$(this).hide();
alert("OK");
save();
});
function save(){
alert("保存成功");
}
菜鸟教程:https://www.runoob.com/try/try.php?filename=tryjqmob_event_taphold
轻击 p元素不放(大约一秒),隐藏/其他操作
$("p").on("taphold",function(){
$(this).hide();
alert("OK");
save();
});
function save(){
alert("保存成功");
}
菜鸟教程:https://www.runoob.com/try/try.php?filename=tryjqmob_event_taphold