创建第一个OpenUI5应用
来源:互联网 发布:电脑怎么安装淘宝 编辑:程序博客网 时间:2024/05/23 09:39
<!DOCTYPE html><html><head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/> <title>SAPUI5 in 20 Seconds</title> <!-- 1.) Load SAPUI5 (from a remote server), select theme and control library --> <script id="sap-ui-bootstrap" src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.ui.commons"></script> <!-- 2.) Create a UI5 button and place it onto the page --> <script> // create the button instance var myButton = new sap.ui.commons.Button("btn"); // set properties, e.g. the text (there is also a shorter way of setting several properties) myButton.setText("Hello World!"); // attach an action to the button's "press" event (use jQuery to fade out the button) myButton.attachPress(function(){$("#btn").fadeOut()}); // place the button into the HTML element defined below myButton.placeAt("uiArea"); // an alternative, more jQuery-like notation for the same is: /* $(function(){ $("#uiArea").sapui("Button", "btn", { text:"Hello World!", press:function(){$("#btn").fadeOut();} }); }); */ </script></head><body class="sapUiBody"> <!-- This is where you place the UI5 button --> <div id="uiArea"></div></body></html>
这是官方的例子,运行效果如下
0 0
- 创建第一个OpenUI5应用
- 创建第一个应用
- 创建第一个RMI应用
- 创建第一个Tomcat应用
- 创建第一个android应用
- 创建第一个vue应用
- nodeJS创建第一个应用
- 创建第一个cocos2d 应用
- 关于如何创建第一个 iOS 应用
- 创建Sencha touch第一个应用
- Android基础课程-创建第一个应用
- node.js 创建第一个web应用
- FireMonkey创建第一个跨平台应用
- 10002---Node.js 创建第一个应用
- android wear第一个应用,创建 Notification
- 创建你的第一个应用
- Node.js 创建第一个应用
- Mybatis(二)-创建第一个应用
- Make Menuconfig详解 (配置内核选择)
- cobar rule 简介
- mysql 使用set names 解决乱码问题的原理
- HDOJ 题目2047 阿牛的EOF牛肉串(递推)
- Linux下安装JDK
- 创建第一个OpenUI5应用
- UVa753/POJ1087_A Plug for UNIX(网络流最大流)(小白书图论专题)
- SMSSDK for Android 1.0.1已经发布
- Wireshark基本介绍和学习TCP三次握手
- [ACM] ZOJ 3725 Painting Storages (DP计数+组合)
- 傅里叶分析之掐死教程(完整版)
- OleDbConnection与SqlConnection的区别与使用方法
- 的规范化局和的发生多少个会
- cocos2d-x 3.2中lua文件生成luac文件