How does jQuery.sap.require work?

前端 未结 4 1635
囚心锁ツ
囚心锁ツ 2021-01-07 11:22

Does SAPUI5 load the libraries each time I call jQuery.sap.require(\"someLibrary\")? For instance if I am calling the above statement in multiple modules in my

4条回答
  •  再見小時候
    2021-01-07 12:21

    When you call this function with some library, it checks that given library is loaded or not using associative array. If the library is loaded, then it returns null. And if the library is not loaded, then it loads the library using sjax call and after a success of the sjax call, it sets the library name as key into associative array.

提交回复
热议问题