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

什么软件比百度搜索好qq关键词排名优化

什么软件比百度搜索好,qq关键词排名优化,泰安手机网站建设,佛山网站优化怎么做在之前的章节中#xff0c;我们已经介绍完了MVC的架构和实现#xff0c;现在我们来讲一下#xff0c;SAPUI5的结构 这一步#xff0c;我们将所有的UI资产从index.html里面独立封装在一个组件里面 这样组件就变得独立#xff0c;可复用了。这样#xff0c;无所什么时候我…在之前的章节中我们已经介绍完了MVC的架构和实现现在我们来讲一下SAPUI5的结构 这一步我们将所有的UI资产从index.html里面独立封装在一个组件里面 这样组件就变得独立可复用了。这样无所什么时候我们去访问资源的时候我们都直接访问组件文件而不是index.html。这种方式使得我们的app变得更加灵活 文件拆分之后长这样 首先我们先新建一个Component.js webapp/Component.js (New) sap.ui.define([sap/ui/core/UIComponent ], (UIComponent) {use strict;return UIComponent.extend(, {init() {// call the init function of the parentUIComponent.prototype.init.apply(this, arguments);}}); });sap.ui.define([sap/ui/core/UIComponent,sap/ui/model/json/JSONModel,sap/ui/model/resource/ResourceModel ], (UIComponent, JSONModel, ResourceModel) {use strict;return UIComponent.extend(ui5.walkthrough.Component, {metadata : {interfaces: [sap.ui.core.IAsyncContentCreation],rootView: {viewName: ui5.walkthrough.view.App,type: XML,id: app}},init() {// call the init function of the parentUIComponent.prototype.init.apply(this, arguments);// set data modelconst oData {recipient : {name : World}};const oModel new JSONModel(oData);this.setModel(oModel);// set i18n modelconst i18nModel new ResourceModel({bundleName: sap.ui.demo.walkthrough.i18n.i18n});this.setModel(i18nModel, i18n);}}); });接下来我们去修改App.controller.js sap.ui.define([sap/ui/core/mvc/Controller,sap/m/MessageToast ], (Controller, MessageToast) {use strict;return Controller.extend(ui5.walkthrough.controller.App, {onShowHello() {// read msg from i18n modelconst oBundle this.getView().getModel(i18n).getResourceBundle();const sRecipient this.getView().getModel().getProperty(/recipient/name);const sMsg oBundle.getText(helloMsg, [sRecipient]);// show messageMessageToast.show(sMsg);}}); });修改index.js webapp\index.js sap.ui.define([sap/ui/core/ComponentContainer ], (ComponentContainer) {use strict;new ComponentContainer({name: ui5.walkthrough,settings : {id : walkthrough},async: true}).placeAt(content); }); Conventions The component is named Component.js. Together with all UI assets of the app, the component is located in the webapp folder. The index.html file is located in the webapp folder if it is used productively. 最终实现效果还是和之前一样
http://www.pierceye.com/news/450947/

相关文章:

  • 方圆网 网站建设wordpress 首页 不显示归档
  • 网站关键词怎么快速上排名wordpress极慢
  • 摄影网站建站wordpress怎么改密码
  • 旅游网站制作过程百度收录查询入口
  • 简述企业网站建设的流程网站建设的需求分析报告
  • 做网络课程的网站聚美优品网站建设分析
  • 网站建设公司简介wordpress注册按钮
  • 网站的栏目建设在哪里惠州网
  • 免费建站模板哪个好核酸造假7人枪毙视频
  • 一手房哪个网站做信息效果好微信小程序打不开
  • 建设网站图片素材包头怎样做网站
  • 网站内容建设与管理90设计app下载
  • 怎么做优惠卷网站公司做网站大概多少钱
  • 哪些网站是单页面应用程序在线做网站流程
  • 公司网站设计维护官方网站建设需要做哪些东西
  • 网站被k还能不能在百度做推广wordpress主题网址导航葬爱
  • 成都网站制作和建设辽阳北京网站建设
  • 合肥金融网站设计网页制作工具分哪两类
  • 专业营销型网站定制wordpress菜单绑定模板
  • 网站建设公司找哪家好石家庄网站改版
  • 建立一个网站要多久网页界面ps制作步骤
  • 珠海网站建设费用自己做网站切入地图
  • 个人在线视频播放网站搭建软件属于网站开发吗
  • 小米的企业网站建设思路c2c的网站
  • 网站设计书籍做网站的基础
  • 买下云服务器怎么做网站官方网站怎么查询
  • 手机版企业网站php西宁做网站公司排名
  • 微网站如何做推广做淘宝客网站需要备案吗
  • 天津网站制作重点windows与wordpress
  • 可以查企业备案的网站吗佛山住房和城乡建设部网站官网