当我将此代码插入我的网站时,我收到错误消息。在更新主题版本之前,此代码可以很好地工作。
<script>
$(document).ready(function(){
$(".text-sep").text("|");
});
</script>
答案 0 :(得分:0)
尝试以下代码。可能会对您有帮助。
jQuery(function($) {
$(".text-sep").html(function() {
return $(this).html().replace("|", "/");
});
});