参见英文答案 Fancybox doesn’t work with jQuery v1.9.0 [ f.browser is undefined / Cannot read property ‘msie’ ]4个 好吧我设置了一些图像打开了fancybox.它曾经工作得很好.现在我得到2个错误. 我改变了什
好吧我设置了一些图像打开了fancybox.它曾经工作得很好.现在我得到2个错误.
我改变了什么我不确定.我在网上看到,当你有多个jquery库包含时,你通常会得到.fancybox不是函数错误信息.据我所知,我只有一个.
以下是可以获取此错误消息的示例:
(WWW).thecardb.com /阿巴特/ 1000-Bialbero / 1960/0/85
我做了一些网址重写,是否有可能导致问题?
RewriteEngine on RewriteBase / DirectorySlash Off # remove trailing slash RewriteRule ^(.*)\/(\?.*)?$$1$2 [R=301,L] # Redirect non-www urls to www RewriteCond %{HTTP_HOST} ^thecardb\.com [NC] RewriteRule (.*) http://www.thecardb.com/$1 [R=301,L] # Don't match real existing files so CSS, scripts, images aren't rewritten RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Match the first two groups before / and send them to the query string RewriteRule ^([A-Za-z0-9-]+)?$car.php?model_make_id=$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-._]+)?$car.php?model_make_id=$1&model_name=$2 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-._]+)/([0-9]+)?$car.php?model_make_id=$1&model_name=$2&model_year=$3 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-._]+)/([0-9]+)/([A-Za-z0-9-._]+)?$car.php?model_make_id=$1&model_name=$2&model_year=$3&model_trim=$4 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-._]+)/([0-9]+)/([A-Za-z0-9-._]+)/([0-9]+)?$car.php?model_make_id=$1&model_name=$2&model_year=$3&model_trim=$4&model_id=$5 [L]
我迷路了!任何帮助表示赞赏.
jQuery最近升级到1.9版,它删除了大部分(如果不是全部)折旧方法. $.浏览器就是其中之一. Fancybox依赖于$.browser,所以你不能使用jQuery 1.9和没有安装迁移插件的你的fancybox版本.要么降级jQuery,升级fancybox,要么包含migrate插件.更多信息:http://blog.jquery.com/2013/01/15/jquery-1-9-final-jquery-2-0-beta-migrate-final-released/
您还应始终指定版本号.
http://code.jquery.com/jquery-1.8.3.min.js