var curr_url = window.location.href; $(‘#saixuanshangpin a‘).each(function(i,n){ if(n == curr_url){ $(this).addClass(‘gonggong‘); } }); */
时间: 2024-10-16 02:24:44
var curr_url = window.location.href; $(‘#saixuanshangpin a‘).each(function(i,n){ if(n == curr_url){ $(this).addClass(‘gonggong‘); } }); */