【发布时间】:2013-09-26 11:59:14
【问题描述】:
我有这个功能设置
var $this = $(this);
if (msg == null) {
$this.tooltip('destroy');
}
else
{
$this.tooltip({'title': msg, 'placement': 'right', 'trigger': 'manual'});
$this.tooltip('show');
}
工具提示显示正常,destroy 行抛出错误data[option] is not a function。如果我将其更改为tooltip('hide'),工具提示会自行隐藏,我无法让它自行删除。谁能帮我解决这个问题?
【问题讨论】:
标签: javascript twitter-bootstrap twitter-bootstrap-3