最新回答 / vippiv
(function($){$.fn.extend({ focusout : function(){ this.each(function(){ $(this).on({ "mouseover":function(){ $(this).css("color","red"); }, "mouseout":function(){ $(this).css("color"...
2015-06-16
已采纳回答 / GavinLi_cn
<...code...> $("div label").css("border", "solid 5px green");上面这句表示的是,div里面的所有label元素都设绿色边框(子辈、孙子辈、甚至是曾孙辈)。$("div&;&llabel").css("border", "solid 5px red");这句表示的是...
2015-06-16
已采纳回答 / coco熊
遍历对象(有附加参数)$.each(Object, function(p1, p2) { this; //这里的this指向每次遍历中Object的当前属性值 p1; p2; //访问附加参数}, ['参数1', '参数2']);
2015-06-15