SAP UI5 Bootstrap脚本的实现原理

简介: SAP UI5 Bootstrap脚本的实现原理
+关注继续查看

Can I change the hard code ID?

In SAP help the UI5 bootstrap logic is explained: Bootstrapping: Loading and Initializing SAPUI5 in HTML Pages.


However, I was asked by my colleague about one question: the script id below is hard coded. Can I change its id to any other value like HelloWorld?

image.pngimage.pngimage.pngOnly if all the three evaluation fail, then framework will compare the script tag id with hard coded id “sap-ui-bootstrap” as last resort.

In my case, although I change the ID to “HelloWorld”, the second regular expression still succeed so resource root is successfully determined, no need to go the last ELSE-IF to compare the ID with hard coded value.

image.pngimage.pngThe code highlighted below parses the string and convert library name into an array: config.modules.

image.pngimage.png


相关文章
|
2月前
|
前端开发 容器
|
2月前
|
前端开发 容器
|
2月前
|
前端开发 开发者 容器
|
2月前
|
JSON 前端开发 JavaScript
SAP UI5 index.html 里的 bootstrap script 介绍
SAP UI5 index.html 里的 bootstrap script 介绍
15 0
|
前端开发 JavaScript 开发者
SAP UI5 初学者教程之二:SAP UI5 的引导过程(Bootstrap) 试读版
SAP UI5 初学者教程之二:SAP UI5 的引导过程(Bootstrap) 试读版
107 0
SAP UI5 初学者教程之二:SAP UI5 的引导过程(Bootstrap) 试读版
|
前端开发
SAP UI5 应用启动(bootstrap)过程单步调试
SAP UI5 应用启动(bootstrap)过程单步调试
81 0
SAP UI5 应用启动(bootstrap)过程单步调试
|
前端开发 Go
SAP UI5 Bootstrap脚本的实现原理
SAP UI5 Bootstrap脚本的实现原理
SAP UI5 Bootstrap脚本的实现原理
|
前端开发
SAP Spartacus里的bootstrap button usage
SAP Spartacus里的bootstrap button usage
76 0
SAP Spartacus里的bootstrap button usage
|
前端开发 JavaScript 开发者
SAP UI5 初学者教程之二:SAP UI5 的引导过程(Bootstrap) 试读版
Jerry 从 2014 年加入 SAP成都研究院 CRM Fiori 开发团队之后开始接触 SAP UI5,曾经在 SAP 社区和“汪子熙”微信公众号上发表过多篇关于 SAP UI5 工作原理和源码解析的文章。
SAP UI5 初学者教程之二:SAP UI5 的引导过程(Bootstrap) 试读版
|
前端开发
SAP UI5 local sandbox bootstrap的执行细节
Created by Wang, Jerry, last modified on Sep 25, 2015
104 0
推荐文章
更多