[英]Supersized.js api error
I have superzied.js 3.2.7 and jquery 1.10.1 with migrate plugin 1.2.1, in the firefox I get error: 我在firefox中有带有迁移插件1.2.1的superzied.js 3.2.7和jquery 1.10.1,在错误中:
TypeError: api.getField(...) is undefined
This line is: 这行是:
if (api.getField('seed').indexOf('no_image.png') != -1) actual_width = '';
And the same problem in Chrome is: Uncaught TypeError: Cannot call method 'indexOf' of undefined.
Chrome中的相同问题是:
Uncaught TypeError: Cannot call method 'indexOf' of undefined.
I have found this, but I have everything doing right: https://github.com/buildinternet/supersized/issues/30 我已经找到了,但是我所做的一切正确: https : //github.com/buildinternet/supersized/issues/30
the api.getField functio is defined in supersize.xx.xx.js and see as below(you need check if this function is marked disable or deleted on your supersize....js) api.getField函数是在supersize.xx.xx.js中定义的,如下所示(您需要检查此功能是否已在supersize .... js上标记为禁用或删除)。
base.getField = function(field){
return base.options.slides[vars.current_slide][field];
};
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.