[Cocos2d-js official documentation] six, cc.async

Web Engine

CCFileUtils.js in Web engine has been deleted because FileUtils file search function in the life of the former station in the Web end can not be achieved.

  • The method of obtaining binary file is transferred to the cc.loader.loadBinary(asynchronous) and cc.loader.loadBinarySync(sync) in. Among them, cc.loader.loadBinarySyncthe method is extremely not recommended, and may be discarded in a version upgrade in the future. Developers do not want to abuse.

  • All resource loading, access, release and other operations are unified to cc.loaderin the.

  • For splicing operation unify path string cc.pathin the.

JSB

In the JSB, because FileUtils call is a native implementation platform, so we will leave it, and cc.fileUtilsrename it jsb.fileUtilsso that users will know this is the only native platform's API.

 

Reproduced please specify: https: //blog.csdn.net/qinning199/article/details/40452199

Guess you like

Origin www.cnblogs.com/wodehao0808/p/11929573.html
Recommended