jQuery如何遍历某个指定的标签,请看下面示例:
function colorToRed(target){
$("#colors a").each(function(){
$(this).attr("class","changToWhite");
});
$(target).attr("class","changToRed");
}
声明:如需转载,请注明来源于www.webym.net并保留原文链接:http://www.webym.net/jiaocheng/924.html





















