日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

SAP UI5 Routing 路由介绍

發布時間:2023/12/19 编程问答 52 豆豆
生活随笔 收集整理的這篇文章主要介紹了 SAP UI5 Routing 路由介绍 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

官網鏈接:https://sapui5.hana.ondemand.com/1.36.6/docs/guide/e5200ee755f344c8aef8efcbab3308fb.html

一個例子:

"routing": {"config": {"routerClass": "sap.m.routing.Router","viewType": "XML","viewPath": "kyma.sample.app.view","controlId": "app","controlAggregation": "pages","async": true},"routes": [{"pattern": "","name": "orders","target": ["orders"]}],"targets": {"orders": {"viewName": "Orders","viewId": "orders","viewLevel": 1,"title": "{i18n>title}"}}

在 manifest.json 文件的 sap.ui5 區域,添加了三個子區域:

(1) config
(2) routes
(3) target

config

This section contains the global router configuration and default values that apply for all routes and targets.

包含了全局路由器信息和適應于所有路由路徑和目標的默認值。

We define the router class that we want to use and where our views are located in the app.

定義了路由器實現類以及我們的視圖在應用中的具體位置。

To load and display views automatically, we also specify which control is used to display the pages and what aggregation should be filled when a new page is displayed.

為了讓視圖能夠顯示出來,需要定義哪個控件用于顯示頁面,以及頁面通過何種 aggregation,填充到該控件去。

routes

Each route defines a name, a pattern, and one or more targets to navigate to when the route has been hit.

每條路由信息定義了一個名稱,一個格式,以及一個路由目的視圖,當該路由觸發時,目的視圖會顯示。

The pattern is basically the URL part that matches to the route, we define two routes for our app.

所謂 pattern,即待匹配的 URL 片段。

例子:

更多Jerry的原創文章,盡在:“汪子熙”:

總結

以上是生活随笔為你收集整理的SAP UI5 Routing 路由介绍的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。