摘要: 对于javascript的冒泡,我一直误解它了,冒泡,即是从底层往外blow blow blow ...惭愧的是,我一直以为阻止冒泡是阻止父元素往子元素传递事件……贴上一串代码以便往后回顾! 1 <script type="text/javascript"> 2 window.onload=function(){ 3 var a=document.getElementById("a"); 4 var b=document.getElementById("b"); 5 var c=document.getElementByI 阅读全文
posted @ 2013-04-26 15:53 琅琊丶 阅读(378) 评论(4) 推荐(1) 编辑
摘要: 参考文献: http://www.cnblogs.com/justinw/archive/2010/04/16/1713086.html http://bclary.com/2004/11/07/#a-10 《javascript高级程序设计》 阅读全文
posted @ 2013-04-26 11:29 琅琊丶 阅读(299) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文
posted @ 2013-04-26 11:25 琅琊丶 阅读(990) 评论(0) 推荐(0) 编辑