egret_mergejson's People
egret_mergejson's Issues
5.2.5可以,5.2.10版本不能使用。
5.2.5可以,5.2.10版本不能使用。你的工程运行结果如下:
load json default.res.json
Main.ts:78 load json config/1.json
Main.ts:78 load json config/2.json
Main.ts:78 load json config/3.json
Main.ts:78 load json config/4.json
-
问题1:
RES.config.config.resourceRoot; RES.config已经没有 -
问题2:
5.2.10加了这句data["root"] = ''; ,我自己把去掉了。
Resource.prototype.addResourceData = function (data) {
//fixed by l2xin 不明白为什么
//data["root"] = '';
RES.config.addResourceData(data);
};
- 问题3:
下面这样写3个文件是ok的,多加一个就失败
if (!RES.hasRes(name)) {
const url = "total.json";
const type = 'json';
const root = "resource/"; //ResourceManager.Instance.ResourceRoot;
const resource = { name, url, type, root };
RES.$addResourceData(resource);
await RES.getResAsync(name);
this.totalContent = RES.getRes(name);
}
else {
if (this.totalContent == null) {
await RES.getResAsync(name);
this.totalContent = RES.getRes(name);
}
}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.