0

我有带有迁移插件 1.2.1 的 superzied.js 3.2.7 和 jquery 1.10.1,在 firefox 中出现错误:

TypeError: api.getField(...) is undefined

这一行是:

if (api.getField('seed').indexOf('no_image.png') != -1) actual_width = '';

Chrome中的同样问题是:Uncaught TypeError: Cannot call method 'indexOf' of undefined.

我找到了这个,但我做的一切都是正确的:https ://github.com/buildinternet/supersized/issues/30

4

1 回答 1

0

api.getField 函数在 supersize.xx.xx.js 中定义,如下所示(您需要检查此函数是否在您的 supersize....js 上标记为禁用或删除)

base.getField = function(field){
    return base.options.slides[vars.current_slide][field];
};
于 2014-02-17T09:00:58.777 回答