我已经让Bootstrap的工具提示正常工作了,但是每当我尝试启动弹出窗口时,使用以下代码就会出现错误Uncaught TypeError: Cannot read property 'prototype' of undefined或Uncaught TypeError: Cannot read property 'Constructor' of undefined
Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype, {
constructor: Popover
, setContent: function () {
var $tip = this.tip()
, title = this.getTitle()
, content = this.getContent()
$tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
$tip.find('.popover-content')[this.options.html ? 'html' : 'text'](content)
$tip.removeClass('fade top bottom left right in')
}
我不太清楚这个问题出在哪里,因为之前它是可以工作的。有什么想法吗?提前感谢。