// ͨ������ light ���� ʵ�ָ��� $(function(){ var href = location.pathname + location.search; //let href = $('.p_breadcrumb .p_breadcrumbitem:last a').attr('href') $(".e_loop-2 .p_list .e_text-4 a ").each(function (i, e) { var aa = $(e).attr("href"); if (aa == href) { // ������ʽ $(e).parents('.p_loopitem').addclass('light') .end().siblings('.p_loopitem').removeclass('light'); } }); });