[LayaAir 2.0]version.json版本文件会加载缓存的,看了源码也没有忽略缓存
laya.core.js 的版本控制源码
static enable(manifestFile, callback, type = 2) {
ResourceVersion.type = type;
ILaya.loader.load(manifestFile, Handler.create(null, ResourceVersion.onManifestLoaded, [callback]), null, Loader.JSON);
}
load没有设置忽略缓存
应该
static enable(manifestFile, callback, type = 2) {
ResourceVersion.type = type;
ILaya.loader.load(manifestFile, Handler.create(null, ResourceVersion.onManifestLoaded, [callback]), null, Loader.JSON, 1, false, "", true);
}
不然我每次加载的都是缓存的version.json 这个别说要DEMO 你们自己看下类库就知道了
static enable(manifestFile, callback, type = 2) {
ResourceVersion.type = type;
ILaya.loader.load(manifestFile, Handler.create(null, ResourceVersion.onManifestLoaded, [callback]), null, Loader.JSON);
}
load没有设置忽略缓存
应该
static enable(manifestFile, callback, type = 2) {
ResourceVersion.type = type;
ILaya.loader.load(manifestFile, Handler.create(null, ResourceVersion.onManifestLoaded, [callback]), null, Loader.JSON, 1, false, "", true);
}
不然我每次加载的都是缓存的version.json 这个别说要DEMO 你们自己看下类库就知道了
要回复问题请先登录
1 个回复
小小泽
赞同来自: