移动端click事件

var tap = "ontouchstart" in document.documentElement ? "touchend" : "click";

$("#inputClose").live("tap", function(){
$("#search").val('');
})

posted @ 2017-09-21 14:02  暖爱  阅读(130)  评论(0编辑  收藏  举报