Javascript Tooltipster jQuery插件没有';行不通
我在我的WordPress主题中使用jQuery插件,但是当我想将它用于HTML内容时,它不会显示任何结果。我的问题是什么 我在main-function.js文件中写了这些Javascript Tooltipster jQuery插件没有';行不通,javascript,jquery,wordpress,Javascript,Jquery,Wordpress,我在我的WordPress主题中使用jQuery插件,但是当我想将它用于HTML内容时,它不会显示任何结果。我的问题是什么 我在main-function.js文件中写了这些 jQuery(function($){ $(document).ready(function() { $('.tooltip').tooltipster( content: $('<span><strong>This text is in bold case !</strong>
jQuery(function($){
$(document).ready(function() {
$('.tooltip').tooltipster(
content: $('<span><strong>This text is in bold case !</strong></span>')
);
});
});
jQuery(函数($){
$(文档).ready(函数(){
$('.tooltip').tooltipster(
内容:$(“此文本为粗体!”)
);
});
});
HTML
更新得惊人
此插件运行良好,但无法处理HTML内容。问题标题的目的是什么???顺便说一句,为什么要嵌套文档就绪处理程序?将内容放在PlainObject
$('.tooltip').tooltipster({content:$('此文本为粗体!'))中代码>对不起,问题标题错误,如何编辑?
<span class="tooltip">Sightly Newer</span>