$.each()遍历后jquery对象被变换为非jquery对象

$.each()遍历后jquery对象被转换为非jquery对象$.each($(#nbar li),function(i,n){if($(n).find(a).te

$.each()遍历后jquery对象被转换为非jquery对象

$.each($('#nbar li'),function(i,n){                if($(n).find("a").text()=='格子铺'){$(n).addClass('li_bd');}            });//遍历后,jquery对象转化为DOM元素,要采用jquery操作该元素时必须使用$(n)将其转换为jquery对象。