我的網站中的所有花式框一直工作到凌晨,然後突然出現錯誤,每一頁和所有花式框正在打開標籤。 遺漏的類型錯誤:對象的翻譯:有沒有方法「的fancybox」 我不知道問題出在哪裏。請幫助我,我已經花一半弄清楚,但沒有幫助。fancybox在每一頁的錯誤未捕獲TypeError:對象[對象對象]沒有方法'fancybox'
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
$(function() {
// Error here **Uncaught TypeError: Object [object Object] has no method 'fancybox'**
$("a.fancybox").fancybox({
'overlayShow': true,
'autoSize': false,
'autoResize': false,
'autoDimensions': false,
'enableEscapeButton': true,
'showCloseButton': true,
'width': 620,
'height': 250,
'type': 'iframe',
'scrolling': 'no'
});
});
</script>
<link rel="stylesheet" href="/Content/fancybox/jquery.fancybox.css?v=2.1.2" type="text/css" />
<script type="text/javascript" src="/Content/fancybox/jquery.fancybox.pack.js?v=2.1.2"></script>
<link rel="stylesheet" href="/Content/fancybox/helpers/jquery.fancybox-buttons.css?v=1.0.5" type="text/css" />
<script type="text/javascript" src="/Content/fancybox/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>
你正在使用'http://code.jquery.com/jquery-latest.min .js' SO check http://stackoverflow.com/q/14344289/1055987 – JFK