Fiori学习专题三:Controls

上一章节中,我们了解到了UI5的加载逻辑。之前,我们的helloworld,是直接写在index.hrml的body标签中,这节课我们将会用UI5控件来显示HelloWorld。
1.修改index.html文件




	
	UI5 Walkthrough
	




2.修改 index.js

sap.ui.define([
	"sap/m/Text"
], (Text) => {
	"use strict";

	new Text({
		text: "Hello World"
	}).placeAt("content");
});

这里使用 sap/m/Text 控件来替换content的内容

你可能感兴趣的:(Fiori学习,学习,javascript,开发语言)