Cc.SpriteFrameCache 不能在浏览器中用么?

cc.SpriteFrameCache.getInstance().addSpriteFrames(“res/home.plist”);

会报错:

Uncaught TypeError: Cannot read property ‘getInstance’ of undefined

版本:cocos2d-x 3.7

浏览器: chrome

另外, 从哪里能找到比较全面的,比较新的API文档信息.

http://www.cocos2d-x.org/reference/html5-js/V3.0beta/symbols/cc.spriteFrameCache.html
这个类的文档

Uncaught TypeError: Cannot read property ‘getInstance’ of undefined

这个报错通常是没有指明对象才会出现的,也就是说楼主可能使用的有一些问题。

改成单例了