我複製直接從他們的網頁的例子:Twitter的引導酥料餅的插件錯誤 - this.isHTML不是一個函數
http://jsfiddle.net/D2RLR/631/
...我收到以下錯誤:
this.isHTML is not a function
[Break On This Error]
$tip.find('.popover-title')[this.isHTML(title) ? 'html' : 'text'](title)
有什麼想法?
這裏的順序,我導入JS文件:
<script type="text/javascript" language="javascript" src="../Scripts/jquery.validate.js"></script>
<script type="text/javascript" language="javascript" src="../Scripts/lib/bootstrap-modal.js"></script>
<script type="text/javascript" language="javascript" src="../Scripts/lib/bootstrap-typeahead.js"></script>
<script type="text/javascript" language="javascript" src="../Scripts/lib/bootstrap-alert.js"></script>
<script type="text/javascript" language="javascript" src="../Scripts/lib/bootstrap-tooltip.js"></script>
<script type="text/javascript" language="javascript" src="../Scripts/lib/bootstrap-tab.js"></script>
<script type="text/javascript" language="javascript" src="../Scripts/lib/bootstrap-datepicker.js"></script>
<script type="text/javascript" language="javascript" src="../Scripts/lib/bootstrap-popover.js"></script>
<script type="text/javascript" language="javascript" src="../Scripts/lib/date.js"></script>
<script type="text/javascript" language="javascript" src="../Scripts/lib/knockout-2.1.0.js"></script>
<script type="text/javascript" language="javascript" src="../Scripts/lib/knockout.mapping.js"></script>
奇怪。我以爲我在我的實際網站上這樣做。我必須回去仔細檢查。 –
@Adam Levitt解決方案是什麼? –
問題是我正在使用tooltip.js庫的2.0.2版本。瘋! –