开发者

Match a string in jQuery regardless of upper/lower case

开发者 https://www.devze.com 2023-01-29 04:12 出处:网络
I\'m trying to match words on the page by using :contains, If i开发者_JS百科\'m searching for the word \"string\" I want to be able to match \"STRING\",\"sTRiNg\" etc. What is the best way to do this?

I'm trying to match words on the page by using :contains, If i开发者_JS百科'm searching for the word "string" I want to be able to match "STRING","sTRiNg" etc. What is the best way to do this?


You can see an answer here: Is there a case insensitive jQuery :contains selector?

0

精彩评论

暂无评论...
验证码 换一张
取 消