UI5 Control lazy load mechanism
生活随笔
收集整理的這篇文章主要介紹了
UI5 Control lazy load mechanism
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
- Create dummy constructor which loads the class on demand
- this is a derived ( generated ) file. Change should be done in the underlying source files only(*.control, *.js) or they will be lost after the next generation.
當(dāng)UI需要實(shí)例化一個(gè)js 類(lèi)的instance時(shí),
首先會(huì)call jQuery.sap.require方法去加載該類(lèi):
requireModule方法輸入的是該類(lèi)對(duì)應(yīng)的js文件的相對(duì)路徑:
要獲取更多Jerry的原創(chuàng)文章,請(qǐng)關(guān)注公眾號(hào)"汪子熙":
總結(jié)
以上是生活随笔為你收集整理的UI5 Control lazy load mechanism的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 快递查询 接口_查询快递接口(上快递10
- 下一篇: when is Component-pr