标签:
<script type="text/javascript"> var url = location.href; $(function(){ var url = location.href; $(".nav li a").each(function(ind,val){ if(url.indexOf($(val).attr("href")) != -1){ $(val).addClass("current"); } }); }); </script>
标签:
原文地址:http://www.cnblogs.com/love9happy/p/4815481.html