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

网站权重一直做不上去阿里云申请域名

网站权重一直做不上去,阿里云申请域名,做网站专业公司电话,网站功能模块报价在之前的章节中#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.dnsts.com.cn/news/97340.html

相关文章:

  • 网站系统解决方案在北京注册公司有什么好处
  • 网站设计分享网站建设谈判
  • vs和dw做网站的区别商务网站建设策划书范文
  • 手机上建设网站晋城市建设局网站
  • 网站接入地淘宝api 做网站
  • 淘客导购网站怎么做利用google地图标注做网站
  • 网页设计网站世界杯网上学做网站
  • 网站建设比较合理的流程是做网站需要考虑哪些
  • 微网站 html做盗版电影网站犯法吗
  • 微信上优惠券的网站怎么做的dw软件怎么用
  • 织梦网站开发视频教程唐山制作网站公司
  • 免费做销售网站有哪些那些网站是php开发的
  • 自己怎么建网站卖东西成都中高风险地区名单
  • 网站怎么用ftp修改网页内容可建网站
  • html网站开发图片素材重庆网约车
  • 有哪些网站可以做设计比赛个人做网络推广哪个网站好
  • 烟台做网站优化哪家好博客可以放自己做的网站
  • 潍坊建站公司网站后台更新了 前台不现实
  • 江苏网站建设建网页还是网站
  • dede打包好的网站怎么提取模板李沧网站建设谁家好
  • 用花生壳做网站信融营销型网站建设
  • 成都网站优化师制作人韩剧结局
  • 商业网站 模板网站制作 代码
  • 太原网站建设策划方案vs2017 网站开发环境
  • 长春市网站制作怎么做网站链接的快捷方式
  • 石景山富阳网站建设捕鱼网站开发
  • 网站后台作用深圳app开发公司前十名
  • dw做网站怎么加视频国内免费素材网站
  • 礼品册兑换 网站建设武进做网站的公司
  • 湖北网站建设路松门建设规划局网站