
jQuery
wg243964183
性格活泼开朗
展开
-
用jQuery循环遍历所有子元素
var divContent = $("X"); divContent.appendTo("body"); divContent.children().each(function(i,n){ var obj = $(n) alert(obj.html());//弹出子元素标签 });原创 2012-03-16 15:57:37 · 60198 阅读 · 0 评论 -
jQuery双色表格
http://www.w3.org/TR/xhtml1/DTD/xhtmlhttp://www.w3.org/1999/xhtml">StripingTable$(document).ready(function(){ //这个就是传说的ready$(".stripe tr").mouseover(function(){//如果鼠标移到class为strip原创 2012-03-16 08:42:01 · 896 阅读 · 0 评论