###HTML
<ul id="thiselement">
    <li>test</li>
    <li>timer</li>
    <li>check</li>
    <li>ramramesh</li>
    <li>ramesh</li>
</ul>
###jQuery
document.write($("#thiselement li:not(:contains('ramesh'))").text());
###预期结果
testtimercheckramramesh
###我得到了什么
testtimercheck
我怎样才能做到这一点?我知道它contains会在找到文本的地方返回,但我只需要确切的文本选择器,因为我想将每个函数与结果一起使用
$("#thiselement li:not(:contains('ramesh'))").each(function(){});