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.
这是场景:
用户单击例如一个按钮,该按钮加载(使用 jQuery)一个节点,例如
'<span id="selected" title="|click to reselect">selected: #' + id + '</span>'
然后是 jQuery(用于提示)代码:
$('#selected').cluetip({splitTitle: '|', showTitle: false});
应用于该 jQuery 加载节点的提示不会触发。
有人知道解决方案吗?
非常感激。
这是一个例子:
$('#button').click(function () { $('#container').append('<span id="selected">...</span>'); $('#selected').cluetip(); });
尝试将您对 ClueTip 的引用放在页面底部,而不是在标题中。
<script type="text/javascript" src="cluetip url here"></script>