默认情况下,导航由app.navigate('#view-id') ,并将散列重写为/#view-id 。 如果我想添加一些参数,它会变成/#view-id?key=val 。
我想使用kendo.Router类,并使url看起来像/key/val或/#key/val #key /#key/val
我可以定义kendo.Router()路由但是如何在不使用app.navigate情况下切换视图?
By default navigation is done by app.navigate('#view-id') and it rewrites hash to /#view-id. If I want to add some params it becomes /#view-id?key=val.
I would like to use kendo.Router class and make url look like /key/val or /#key/val
I can define kendo.Router() routes but how can I switch views without using app.navigate?
最满意答案
请在您的其他问题中查看我的回复。 目前不支持此功能,但如果您愿意深入了解移动应用实施的内部,则应该很容易实现。
Please check my reply in your other question. This is not supported currently, but it should be easy to implement in case you are willing to dive into the internals of the mobile app implementation.
更多推荐
发布评论