阅读背景:

比较jQuery .each循环中的字符串

来源:互联网 

I'm trying to add a class to a list item, based on the text content of the item - it's a workaround to highlight items in a dynamically generated menu, but the class gets applied to all the list items. Is it going wrong because I'm comparing two different kinds of variable?I'm trying to add a class to a list item, based




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: