从丁哥那里学到的两个 SAP UI5 技能

简介: 从丁哥那里学到的两个 SAP UI5 技能

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>


相关文章
|
3天前
|
前端开发 搜索推荐 开发者
SAP UI5 sap.m.Column 控件的 minScreenWidth 属性介绍
SAP UI5 sap.m.Column 控件的 minScreenWidth 属性介绍
33 0
|
3天前
|
JavaScript 前端开发 开发者
SAP UI5 控件 sap.m.ListBase 的 inset 属性的作用介绍
SAP UI5 控件 sap.m.ListBase 的 inset 属性的作用介绍
18 0
|
3天前
|
Web App开发 数据采集 前端开发
纯技术讨论:如何让 SAP UI5 应用无法被别人在浏览器里调试 - 这种做法不推荐试读版
纯技术讨论:如何让 SAP UI5 应用无法被别人在浏览器里调试 - 这种做法不推荐试读版
28 0
|
3天前
|
XML 存储 数据格式
SAP UI5 控件 customData 属性的应用介绍
SAP UI5 控件 customData 属性的应用介绍
38 0
|
3天前
|
前端开发 JavaScript API
SAP UI5 sap.ui.require.toUrl 的作用介绍
SAP UI5 sap.ui.require.toUrl 的作用介绍
37 0
|
3天前
|
搜索推荐
如何让 SAP UI5 Smart Table 支持多项选择(Multiple-Selection)试读版
如何让 SAP UI5 Smart Table 支持多项选择(Multiple-Selection)试读版
22 0
|
3天前
|
存储 安全 测试技术
使用 Visual Studio Code 创建 SAP UI5 项目遇到 self-signed security certificate 相关问题
使用 Visual Studio Code 创建 SAP UI5 项目遇到 self-signed security certificate 相关问题
13 0
|
3天前
|
开发者 UED
SAP UI5 SmartFilterBar 中 ControlConfiguration Aggregation 的作用介绍
SAP UI5 SmartFilterBar 中 ControlConfiguration Aggregation 的作用介绍
19 0
|
3天前
|
开发者 UED
关于 SAP UI5 sap.m.Column 的 demandPopin 属性
关于 SAP UI5 sap.m.Column 的 demandPopin 属性
18 0
|
3天前
SAP UI5 Link 控件的使用方法介绍 - 后续学习 Fiori Elements Smart Link 的基础试读版
SAP UI5 Link 控件的使用方法介绍 - 后续学习 Fiori Elements Smart Link 的基础试读版
18 0