在Kapsel應用中使用SMP SDK內建的sapui5庫

來源:互聯網
上載者:User
如果想提供app的啟動速度,直接使用SMP SDK Logon plugin裡面的sapui5庫,可以參考 http://scn.sap.com/docs/DOC-65387 SAPUI5 Used by the Logon Plugin 章節

Alternatively if your application uses SAPUI5, you may wish to reference the already included SAPUI5 library from your application. It may make sense to move the
C:\Kapsel_Projects\LogonDemo\plugins\kapsel-plugin-logon\www\common\assets\ui\resources
folder to the
C:\Kapsel_Projects\LogonDemo\www
folder

and then modify the three references in the below file to use ../../../resources as shown below.
C:\Kapsel_Projects\LogonDemo\plugins\kapsel-plugin-logon\www\common\assets\ui\iab.html

<script type="text/javascript" src="../../../resources/sap/ui/thirdparty/jquery/jquery-1.11.1.js"></script><script type="text/javascript" src="../../../resources/sap/ui/thirdparty/jqueryui/jquery-ui-position.js"></script><script id="sap-ui-bootstrap" type="text/javascript"     data-sap-ui-preload="none" data-sap-ui-libs="sap.m"        data-sap-ui-theme="sap_bluecrystal" src="../../../resources/sap-ui-core-nojQuery.js"></script>     

在我的kapsel app 的www目錄下面的index.html裡面引用sapui5庫:

<script src="./resources/sap-ui-core.js"            id="sap-ui-bootstrap" data-sap-ui-libs="sap.m" data-sap-ui-theme="sap_bluecrystal"> </script>

更多SMP SDK Logon plugin裡面帶的可用的第三方類庫:
assets\www\smp\logon\ui\resources\sap\ui\thirdparty\jquery\jquery-1.11.1.js
assets\www\smp\logon\ui\resources\sap-ui-core.js

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.