|
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
|---|---|
| 作者 | 正文 |
|
最后更新时间:2007-11-19
event 对象在ff里需要显示传入。
目标元素的获得也有不同. eg. function hello(e){ var evt=window.event||e, el=evt.srcElement||evt.target; return alert('hello i am '+el.id); } <div id='superDIV' onclick='hello(event)'>click me!</div> |
|
| 返回顶楼 | |
|
最后更新时间:2007-11-19
up2vs 写道 event 对象在ff里需要显示传入。
非常感谢,我试一下
目标元素的获得也有不同. eg. function hello(e){ var evt=window.event||e, el=evt.srcElement||evt.target; return alert('hello i am '+el.id); } <div id='superDIV' onclick='hello(event)'>click me!</div> |
|
| 返回顶楼 | |
|
最后更新时间:2008-07-25
怎么做 只向下关联?
也就是说 我点击父节点时 子节点选中。 当取消点击父节点时不触发时间。 而取消子节点 时 对父节点不操作。 |
|
| 返回顶楼 | |




