当前位置: 首页 > news >正文

官网网站源码中国铁建官网

官网网站源码,中国铁建官网,桂林手机网站建设,wordpress wpdoc我的理解&#xff0c;这就是一个引导指令 1.我们右键打开命令行--执行 ui5 use OpenUI5 2.执行命令&#xff1a;ui5 add sap.ui.core sap.m themelib_sap_horizon 执行完之后&#xff0c;会更新 yaml 文件 3.修改index.html <!DOCTYPE html> <html> <head&…

我的理解,这就是一个引导指令

1.我们右键打开命令行--执行  ui5 use OpenUI5

2.执行命令:ui5 add sap.ui.core sap.m themelib_sap_horizon

执行完之后,会更新 yaml 文件

3.修改index.html 

<!DOCTYPE html>
<html>
<head><meta charset="utf-8"><title>UI5 Walkthrough</title><scriptid="sap-ui-bootstrap"src="resources/sap-ui-core.js"data-sap-ui-theme="sap_horizon"data-sap-ui-libs="sap.m"data-sap-ui-compatVersion="edge"data-sap-ui-async="true"data-sap-ui-onInit="module:ui5/walkthrough/index"data-sap-ui-resourceroots='{"ui5.walkthrough": "./"}'></script>
</head>
<body>
<div>Hello World</div>
</body>
</html>

In this step, we load the SAPUI5 framework from the webserver provided by UI5 Tooling and initialize the core modules with the following configuration options:

  • The id attribute of the <script> tag has to be exactly "sap-ui-bootstrap" to ensure proper booting of the SAPUI5 runtime.
  • The src attribute of the <script> tag tells the browser where to find the SAPUI5 core library – it initializes the SAPUI5 runtime and loads additional resources, such as the libraries specified in the data-sap-ui-libs attribute.

  • The SAPUI5 controls support different themes. We choose sap_horizon as our default theme.

  • We specify the required UI library sap.m, which contains the UI controls we need for this tutorial.

  • To make use of the most recent functionality of SAPUI5 we define the compatibility version as edge.

  • We configure the bootstrapping process to run asynchronously. This means that the SAPUI5 resources can be loaded simultaneously in the background for performance reasons.

  • We define the module to be loaded initially in a declarative way. With this, we avoid directly executable JavaScript code in the HTML file. This makes your app more secure. We'll create the script that this refers to further down in this step.
  • We tell SAPUI5 core that resources in the ui5.walkthrough namespace are located in the same folder as index.html.

注意 这里src 的输入值是resources/sap-ui-core.js

我们需要先将resources文件先建立,并从从”https://openui5.hana.ondemand.com/resources/sap-ui-core.js“中将此文件保存进去

或者直接将src 的输入值改为 https://openui5.hana.ondemand.com/resources/sap-ui-core.js

这样之后才能正常加载

4.在webapp文件下创建一个index.js的文件

sap.ui.define([], () => {"use strict";alert("UI5 is ready");
});

5.输入npm start  结果如下

http://www.yayakq.cn/news/677344/

相关文章:

  • 去百度建网站中山做网站哪家专业
  • 百度网站免费电话自己电脑 wordpress
  • 网站页面创意商城县建设局网站
  • 电话用网站做综合布线外链推广平台
  • 网站空间到期提示买东西网站建设
  • 便捷网站建设哪家好免费素材视频网站
  • 心理咨询网站建设wordpress 调用GPS
  • dede网站站内推广方法seo代理
  • 做网站的如何兼职常用wordpress搭建环境
  • 晋城网站建设费用网站开发程序开发
  • 厦门做企业网站找谁中视频自媒体平台注册
  • 相亲网站建设友情链接如何添加
  • 长治推广型网站建设电商设计需要具备什么
  • 常州新北区建设局网站网站建设需要多少钱小江
  • 网站 aspx 模板外卖小程序源码
  • 域名解析到别人网站化妆培训学校网站源码 下载
  • 国外品牌网站新农村建设管理网站
  • 上海欣扬集团 网站建设电商网站建设过程
  • 网站左侧导航源码如何做一个漂亮的网页
  • wordpress怎么设计网站诸城网络推广公司
  • 自己做动画网站甘肃省住房和城乡建设厅安置局网站
  • 做分析图很好用的网站聊城网站制作公司电话
  • 响应式网站代理建设博物馆网站
  • 网站服务器送一年德州做网站哪家好
  • 网站页面统计代码怎样做instergram网站营销
  • 怎样做自己网站后台不被攻击个人主页网站
  • 云浮新兴县做网站漯河住房建设局网站
  • 建设银行网站下载中心大连建设工程信息网防水
  • 网站建设合同免费下载网站建设 交易保障
  • 网站建设给客户看的ppt佛山做网站建设价格