所以基本上我要做的是应用一次单击事件,然后使用event.target确定所点击的内容.在确定点击了什么之后,我可以使用它来操纵DOM.下面是我能给我一些有用的东西,但它并没有给我'正是我点击的'.
$("body").click(function(event) {
alert(event.target.nodeName); // Alerts the type of element you clicked on, but doesn't return anything 'usable' to manipulate the DOM
});