jquery
阿钿_
这个作者很懒,什么都没留下…
展开
-
jquery 基本操作
jquery基本对象操作: var theNode = document.getElementById("id"); var theNodeQty = $(theNode);//转为jquery对象; var theElement = theNodeQty [0];//从jquery对象中获取dom对象,相当于theNodeNodeQty.get(0); 判断jquer...原创 2011-05-13 21:11:54 · 128 阅读 · 0 评论 -
jquery 基本事件
jquery 禁止冒泡: $('#id').bind('click',function(event){ event.stopPropagation(); }); jquery 阻止默认行为(表单提交): $('#id').bind('click',function(event){ event.preventDefault(); }); ...原创 2011-05-14 09:36:43 · 95 阅读 · 0 评论