js代码实现添加class属性和删除clss属性
<script type="text/javascript">$(document).ready(function () { $("#test").removeClass("List_topA"); $('.List_top a').each(function () { if ($($(this))[0].href == String(window.location)) $(this).addClass('List_topA').attr('href', 'javascript:void(0);'); }); }) </script><script type="text/j