检查长度时出现未定义错误。请查看图片
this. updateConfiguration = _.debounce(this.updateConfiguration, 300);
this.set({ url: (HyprLiveContext.locals.siteContext.siteSubdirectory 11 ") + (slug ? "/" + slug : "") + "/p/" + this.get("productCode)}
this.lastConfiguration = [];
this.calculateHasPriceRange(conf); conf = undefined
this.on('sync', this.calculateHasPriceRange);
var variations = this.get('variations'); variations = undefined
var sum = 0; sum = 0
!.. 0)
{
var stockArray = [];
for(var 1=0; i<variations.length; i++)
{
原因何在?
1条答案
按热度按时间hgqdbh6s1#
尝试初始化数组,并检查是否为真实值: