我试图瞄准下一个'。在使用 jquery 的标题中。
所以现在的标题是
<h1 class="page-head">Explore. Think. Connect.</h1>
我的jQuery是
$(h1.page-head:contains(.)').each(function(){
$(this).html(
$(this).html().replace('.','<span class=\'nice-point\'>.</span>')
);
});
我想知道如何针对其他 2 '。分别为它们添加样式。
任何帮助将不胜感激!