我结合了网站的所有javascripts
它有一些像facebox这样的jQuery插件,云变焦面盒工作正常,
但是云缩放有错误,错误是火灾错误 无效的对象初始值设定项
var a = {undefined}
变量带有一些eval函数,如下所示
eval('var a = {' + $(this).attr('rel') + '}');
relOpts = a;
这里我附上了一些错误返回的代码,任何人都可以帮助我,我尝试了很多但没有结果
$.fn.CloudZoom = function (options) {
// IE6 background image flicker fix
try {
document.execCommand("BackgroundImageCache", false, true);
} catch (e) {}
this.each(function () {
var relOpts, opts;
//
eval('var a = {' + $(this).attr('rel') + '}');
//error throw in below line
relOpts = a;
if ($(this).is('.cloud-zoom')) {
$(this).css({
答案 0 :(得分:1)
您需要检查HTML代码属性“rel”。