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.
我学会了如何显示文本+变量,但是在这种情况下我不知道该怎么做,我用逗号尝试了很多变化,但我觉得我缺乏基本知识在这里起着至关重要的作用,请帮助
$('div:Contains('"Some text" + '+ $.trim(this.value) +'')')
SO 格式向您显示您的函数调用被解释为字符串文字。而不是
尝试
$('div:Contains("Some text"' + $.trim(this.value) +')')
另外,你的目标是什么?