我正在使用OSClass。当转到http://localhost/osclass/index.php?page=item&id=2
页面时,会出现以下错误。没有定义jQuery,并且Object [object Object]在OSClass中没有方法'fancybox'
Uncaught ReferenceError: jQuery is not defined
(anonymous function)
Uncaught TypeError: Object [object Object] has no method 'fancybox'
(anonymous function)
o
p.fireWith
e.extend.ready
c.addEventListener.B
Uncaught TypeError: Cannot call method 'create' of undefined
(anonymous function)
在那个文件我的JS们
,
osc_register_script('fancybox', osc_current_web_theme_js_url('fancybox/jquery.fancybox.js'));
osc_enqueue_script('fancybox');
osc_enqueue_script('jquery-validate');
osc_enqueue_style('fancybox', osc_current_web_theme_js_url('fancybox/jquery.fancybox.css'));
和
哪里是我的问题吗?
你能发布你在页面上使用的javascript吗? – benzonico 2013-03-01 12:23:25