IE jQuery 对象不支持 属性 trim()

IE jQuery Object Doesn't Support Property trim()

贬值代码,删除以支持其他答案。

是的,$.trim(new_li.className); 是正确的方法。