cc.SpriteFrameCache.getInstance().addSpriteFrames(“res/home.plist”);
会报错:
Uncaught TypeError: Cannot read property ‘getInstance’ of undefined
版本:cocos2d-x 3.7
浏览器: chrome
另外, 从哪里能找到比较全面的,比较新的API文档信息.
cc.SpriteFrameCache.getInstance().addSpriteFrames(“res/home.plist”);
会报错:
Uncaught TypeError: Cannot read property ‘getInstance’ of undefined
版本:cocos2d-x 3.7
浏览器: chrome
另外, 从哪里能找到比较全面的,比较新的API文档信息.
Uncaught TypeError: Cannot read property ‘getInstance’ of undefined
这个报错通常是没有指明对象才会出现的,也就是说楼主可能使用的有一些问题。
改成单例了