$(document).click(function(e){
alert(e.target);
});
That alerts [Object HTMLDivElement], is there another variable with the开发者_运维问答 ID of the object?
alert($(e.target).attr("id"));
or
alert(e.target.id);
$(document).click(function(e){
alert(e.target);
});
That alerts [Object HTMLDivElement], is there another variable with the开发者_运维问答 ID of the object?
alert($(e.target).attr("id"));
or
alert(e.target.id);
上一篇:单位员工请假病条怎么写呢??
辣椒炒肉丝怎么做好吃啊??:下一篇
精彩评论