Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用这个:
$("[class*=welcome]").click( function(){ e.t.c........
选择器不工作?当任何对象中包含“欢迎”一词时,我希望这会触发。
谢谢你。
<div class="welcome_something"></div>
将与
$("[class*='welcome']")
和
<div class="something">You are welcome</div>
$("div:contains('welcome')")