84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
今天看到一个面试题 :如何获取冒泡事件的根节点
个人的理解是,冒泡事件不是都会向上冒泡的window或document吗?那根节点是不是都是window?
我猜题目意思是,怎么知道是哪个元素冒的泡,可以用target属性,ie6-8的话,用srcElement.
我猜题目意思是,怎么知道是哪个元素冒的泡,可以用target属性,ie6-8的话,用srcElement.