javascript事件捕获机制,dom tree

$(document,"a").on("click",function(){alert(2);return false;});
$("<a>zdfsdafasdfsdfasdfsadf</a>").appendTo("body")

  事件从document开始级级向下搜,每次都是,所以这个事件会捕获到所有匹配的dom元素