从丁哥那里学到的两个 SAP UI5 技能
SAP 两个 技能 UI5 学到
2023-09-14 09:03:57 时间
sapui5.runtime\src\framework_core\target\classes\META-INF\resources\sap-ui-core.js
Line 14925 ->
/**
* Determine whether to use debug sources depending on URL parameter and local storage
* and load debug library if necessary
*/
(function() {
//Check URI param
var bDebugSources = /sap-ui-debug=(true|x|X)/.test(location.search),
bIsOptimized = window["sap-ui-optimized"];
//Check local storage
try { //Necessary for FF when Cookies are deactivated
bDebugSources = bDebugSources || (window.localStorage.getItem("sap-ui-debug") == "X");
} catch (e) {}
window["sap-ui-debug"] = bDebugSources;
// if bootstap URL already contains -dbg URL, just set sap-ui-loaddbg
if (/-dbg\.js([?#]|$)/.test(_oBootstrap.url)) {
window["sap-ui-loaddbg"] = true;
window["sap-ui-debug"] = true;
}
// if current sources are optimized and debug sources are wanted, restart with debug URL
if (bIsOptimized && bDebugSources) {
var sDebugUrl = _oBootstrap.url.replace(/\/(?:sap-ui-cachebuster\/)?([^\/]+)\.js/, "/$1-dbg.js");
window["sap-ui-optimized"] = false;
window["sap-ui-loaddbg"] = true;
document.write("<script type=\"text/javascript\" src=\"" + sDebugUrl + "\"></script>");
var oRestart = new Error("Aborting UI5 bootstrap and restarting from: " + sDebugUrl);
oRestart.name = "Restart";
throw oRestart;
}
})();
Sap-ui-core.js is merged from sapui5.runtime\src\framework\_core\target\classes\META-INF\maven\com.sap.openui5\sap.ui.core\pom.xml
<echo>Merging module: sap-ui-core.js</echo>
concat destfile="${project.build.outputDirectory}/META-INF/resources/sap-ui-core.js" overwrite="true" encoding="UTF-8" eol="lf" fixlastline="true">
<filelist dir="${project.build.outputDirectory}/META-INF/resources/">
<file name="sap/ui/thirdparty/jquery/jquery-1.11.1.js"/>
<file name="sap/ui/thirdparty/jqueryui/jquery-ui-position.js"/>
<file name="sap/ui/Device.js"/>
<file name="sap/ui/thirdparty/URI.js"/>
<file name="jquery.sap.promise.js"/>
<file name="jquery.sap.global.js"/>
</filelist>
</concat>
相关文章
- 关于 SAP UI5 参数 $$updateGroupId 前面两个 $ 符号的含义
- SAP UI5 OData谣言粉碎机:极短时间内发送两个Odata request,前一个会自动被cancel掉吗
- 两个SAP UI5脚手架应用加载性能的比较
- where is url parameter evaluated in UI5 core q.sap.getUriParameters
- SAP CRM Fiori应用My Note的OData调用设计
- SAP ABAP OData 服务的 $count 和 $inlinecount 两个操作的区别试读版
- SAP 智能机器人流程自动化(iRPA)解决方案分享
- 在SAP WebClient UI里显示倒数计时的UI
- 在阿里云 ECS 上使用 SAP Spartacus
- SAP Spartacus B2B OrgUnit 和 OrgUser 的路由映射差异比较
- SAP Spartacus的Lock Focus Directive单元测试实现
- SAP CRM CUSTOMER_H扩展字段的设计原理
- SAP CRM中间件下载出错的错误排查
- SAP UI5和React的页面渲染性能比较
- SAP Fiori Elements drop down list debug
- 两个SAP UI5脚手架应用加载性能的比较