代码
if(resName.endsWith('.png'))
报错信息如下,请大伙帮忙看看,实在没办法
TypeError: resName.endsWith is not a function at main.js:29 at Array.forEach (<anonymous>) at Main.loadResources (main.js:28) at Main.start (main.js:17) at new Main (main.js:13) at game.js? [sm]:9 at O (VM6051 WAGameSubContext.js:1) at <anonymous>:1:1 at doWhenAllScriptLoaded (game.js:40) at game.js:14(env: Windows,mg,1.06.2208010; lib: 2.25.4)