3
我試着用bootstrap使用scrollspy,並且遇到一些錯誤。錯誤控制檯不斷返回這一點:TypeError: 'undefined' is not an object (evaluating '$.fn')
,在引導-scrollspy.js的124線,這是該行
var old = $.fn.scrollspy
,這是ScrollSpy插件定義下。我使用的代碼直接取自this jsFiddle
有沒有人知道爲什麼會發生這種情況?
您是否在此行之前導入jQuery? – cfs