当前位置:网站首页>How SAP ui5 uses manifest JSON file defines third-party library dependencies
How SAP ui5 uses manifest JSON file defines third-party library dependencies
2022-06-12 23:43:00 【Hua Weiyun】
Jerry Previous post How to be in SAP UI5 Third party libraries are integrated into applications : One view on a mobile device Web Apply the tips of printing debugging information Introduced a kind of SAP UI5 Tips for defining and using third party libraries .
after , In my technical communication group ,SAP Expert Guo Ye feedback said , There's another way to do it SAP UI5 manifest.json How to define dependencies in the file .
This paper introduces the second method . stay SAP UI5 In Engineering , Create a new one lib Folder , Put in the third party library file , And then in manifest.json Of documents sap.ui5 In the area , Define the reference to this third-party library file .
Source code :
"resources":{ "js": [ { "uri": "lib/vconsole-min.js", "name": "vconsole-min.js", "version": "3.7.0" }] }
Runtime ,vConsole The library was loaded successfully .
Of course , stay SAP UI5 The controller uses the following statement to load the third-party library manually , Can also work :
jQuery.sap.require(“SAPUI5ExternalLibs/libs/moment”);
The third-party library loaded in this way , It's the greedy way to load , namely SAP UI5 When the application is initialized , The third-party library will be loaded . and Jerry Previous post How to be in SAP UI5 Third party libraries are integrated into applications : One view on a mobile device Web Apply the tips of printing debugging information The loading mode introduced is lazy loading mode , That is to say, only the controller and the view corresponding to the controller that really use the third-party library function are used by the user , It really triggers the loading of the third-party library .
边栏推荐
- InfoQ geek media's 15th anniversary solicitation | brief introduction to the four challenges of building a micro service architecture
- 利率降低导致债券价格上涨
- Summary of the lowest level error types in PHP
- 基于Three.js海上风电数字孪生三维效果
- So, what is the difference between e.target and e.currenttarget?
- Heilongjiang Branch and Liaoning Branch of PostgreSQL Chinese community have been established!
- Pytorch中的梯度累加【在实验时,由于GPU显存限制,遇到batch_size不能再增大的情况。为解决该问题,使用梯度累加方法】
- How to get Matplotlib figure size
- Message queue directory
- Industry reshuffle, a large number of programmers are going to lose their jobs? How can we break the current workplace dilemma
猜你喜欢
leaflet如何优雅的展示重叠点位的气泡窗口
Operation of simulation test platform for G3 boiler water treatment test questions in 2022
Talent Weekly - 5
2202 resume making
Alien skin exposure X7 color filter plug-in, raw post-processing tool
H5時代leaflet中還在用DivIcon?
The most widely used dynamic routing protocol: OSPF
VS2015 DLIB 1916 USER_ ERROR__ inconsistent_ build_ configuration__ see_ dlib_ faq_ 1 USER_ ERROR__ inconsiste
你真的会用PostGIS中的buffer缓冲吗?
OSM map local publishing - how to generate vector maps of provinces and cities
随机推荐
PostgreSQL 中文社区黑龙江分会和辽宁分会成立啦!
[North Asia data recovery] data recovery cases in which the partitions disappear and the partitions are inaccessible after the server reinstalls the system
Restrictions on MySQL function creation
Opencv source code compilation
Summary of individual NLP internship experience
设计消息队列存储消息数据的 MySQL 表格
How does idea switch the interface to Chinese
The programmer has worked for 7 years. At the age of 31, he has no choice but to deliver takeout. I really don't want you to go through his journey again
如何利用华为云容灾解决方案替代灾备一体机
1111111111111111111111111111111111111111111111111111111
Software development tools [3] theoretical basis of software development tools
Model over fitting - solution (II): dropout
Summary of the lowest level error types in PHP
Redis realizes SMS verification code login
Develop a web office suite from scratch (5): mouse hover over text
SAP UI5 如何通过 manifest.json 文件定义第三方库依赖关系
Cherry Blossom powder Dudu
Pytorch common parameter initialization methods: [uniform distribution, normal (Gaussian) distribution, Xavier, Kaiming, orthogonal matrix, sparse matrix, constant, identity matrix, zero filling]
Preparing for the Blue Bridge Cup Day11__ Basic operation of serial port communication
MySQL基础篇视图的总结