如何在Kendo UI Mobile应用程序中使用漂亮的URL?(How to use pretty urls in Kendo UI Mobile app?)

系统教程 行业动态 更新时间:2024-06-14 17:04:03
如何在Kendo UI Mobile应用程序中使用漂亮的URL?(How to use pretty urls in Kendo UI Mobile app?)

默认情况下,导航由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.

更多推荐

本文发布于:2023-04-24 21:16:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/c9b6fe9356638aca6387ae55abbed2b7.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   漂亮   如何在   UI   Kendo

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!