目录
If we open the target folder: What is exactly the usage of these four parts?
下图这四种资源有什么用处?
Reason why I asked: the content between 1 and 2 are the same, 3 and 4 are the same.
Are these CSS styles still used?
上面的CSS似乎没有用到。
I don’t think so since a pure text search shows no *.js are using them.
I know the children element contained in the aggregation would also be rendered in the runtime:
包含在这些aggregation的子控件在运行时被渲染。
However, why we choose panel as placeholder but not other one like XXXlayout?
It could be deleted now
Should be noteEditDialog instead.
Follow this design:
Use this instead:
Take this code for example:
In the runtime lifecycle, the value of these properties can never change:
Do a performance test on this.getProperty:
在this.getProperty方法加上性能数据的采集:
After clicking add button, there are more than 1200 times getProperty call, actually most can be avoided.
发现随便点击一个Add按钮,会触发一千多次的getProperty调用。而大多数其实都可以避免的。
If we call getProperty on these properties once in init, we can save 1200 * 0.5 = 0.6s
如果我们在onInit里只调用一次getProperty,然后把结果缓存起来,就可以节省1200 * 0.5 = 0.6s的时间。
Didn’t try in js yet, can we use “return ( oValue1 – oValue2 )”?