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

你可能感兴趣的:(SAPUI5)