我在脚本中收到:Uncaught TypeError: Cannot call method 'show' of null" 错误,指出错误在该区域的某处,见下文:
// Show the correct more view images and if there are moreviews displayed, display the more views title
if (selectedmoreview !== null && selectedmoreview !== undefined && howMany > 0) {
selectedmoreviewtitle.show();
selectedmoreview.invoke('show');
} else {
if(howMany > 0){ selectedmoreviewtitle.hide(); }
}
spConfig.configureElement(dropdownEl);
谁能帮我解决这个问题并让我的功能正常工作?一些专家的建议将不胜感激