SAPUI5

SAPUI5 是一个企业网页前端架构,基于jQuery. 和之伴随的还有一个开源的OpenUI5,可以在Github上获取.    除此之外,二者的区别是什么呢?

开发UI5有3种环境方法:<1> Eclipse+ SAPUI5 Tools;    <2>SAP HANA Studio + SAPUI5 Tools; <3>WebIDE.

第<3>种最简单,只要一个HCP账号就可以了,

  1. 登录HCP (没有账号的话可以先注册)

  2. 点击侧边栏的 Subscriptions

  3. 点击 webide

  4. 点击 Application URL

SAPUI5使用MVC(M - model, V - view, C - control)架构, 通过数据绑定连接数据源与实体. M指数据源, V和C指实体.


UI5指定资源的位置:

For OpenUI5 you can usesrc="https://openui5.hana.ondemand.com/resources/sap-ui-core.js"

For accessing SAPUI5 on the SAP HANA Cloud Platform, for example, usesrc="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js".


Model View View Controller

Data Binding

Components

SAPUI5 is a client UI technology based on Javascript, CSS and HTML5.


To use SAPUI5 features in your HTML page, you have to load and initialize the SAPUI5 library.

XHR --- XMLHttpRequest

CDN --- Content Delivery Network


Bootstrap file: 

sap-ui-core.js is the standard bootstrap file, contains jQuery, jquery-ui-position and only the minimum required parts of the core library.


Components:

Component.js --- the component controller

manifest.json  --- a descriptor

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值