view - 如何在 SAPUI5 中使用 js 实例化视图并将其添加到路由器
问题描述
是否可以在 SAPUI5 中使用 js 实例化视图并将其添加到路由器?
就像是:
var oView = sap.ui.core.view("<path>", "XML"); //instantiate xml view from string
oRouter.addRoute("routename", [<target-page-1", "target-page-2"], oView); //add the view to the router
谢谢!
解决方案
推荐阅读
- python - 在 Python 中使用 _FillValue 插值 3-dim(时间、纬度、经度)字段。如何避免for循环?
- android - NullPointerException:尝试在空对象引用上调用接口方法“boolean java.util.Collection.isEmpty()”
- python - 如何在 Flask 中制作爬虫输出的下载链接?
- python - Python 连接字节
- typescript - RE2 - 替换命名组或获取命名组的索引
- c# - VS 2019 (v16.10.4) 中缺少“添加新项目”模板
- java - Java中的SQL查询,枚举返回错误整数值:
- google-sheets - 如何在 Zapier 中使用 Firestore 中的多条记录
- scikit-learn - 为 KNeighborsRegressor 中的值绘制邻居
- python - 如何编写代码按值选择下拉数据