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) andcc.loader.loadBinarySync
(sync) in. Among them,cc.loader.loadBinarySync
the 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.loader
in the. -
For splicing operation unify path string
cc.path
in the.
JSB
In the JSB, because FileUtils call is a native implementation platform, so we will leave it, and cc.fileUtils
rename it jsb.fileUtils
so that users will know this is the only native platform's API.
Reproduced please specify: https: //blog.csdn.net/qinning199/article/details/40452199