在OpenUI5中使用xmlviews創建一個簡單的MVC應用程序時,我遇到了一個錯誤。OpenUI5加載時出錯DateTimeInput
我加載OpenUI5因爲這是他們的入門指南中提到:
<script id='sap-ui-bootstrap' type='text/javascript'
src='https://openui5.hana.ondemand.com/resources/sap-ui-core.js'
data-sap-ui-theme='sap_bluecrystal'
data-sap-ui-libs='sap.m'>
</script>
然後加載xmlView中:
var starterPage = sap.ui.xmlview("starterPage");
我的問題是,當我包括DateTimeInput我starterPage xmlView中的加載失敗,出現以下情況:
錯誤:在負緩存中發現:'sap/m/DateTimeInput.js'從https://openui5.hana.ondemand.com/resources/sap/m/library-preload.json/sap/m/DateTimeInput.js:錯誤:未能加載'sap /ui/thirdparty/mobiscroll/js/mobiscroll-core.js'從./sap/ui/thirdparty/mobiscroll/js/mobiscroll-core.js:0 - NS_ERROR_DOM_BAD_URI:訪問受限制的URI否認
有誰知道一個主意?
謝謝!