[英]How to instantiate view and add it to Router using js in SAPUI5
是否可以在 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
谢谢!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.