Uno Platform - WASM - 有没有办法 read/interact 使用浏览器的地址栏?

Uno Platform - WASM - is there a way to read/interact with the address bar of the browser?

总的来说,我是 Uno Platform 和 WebAsssembly 的新手,但认为它有很大的潜力!

有没有办法从 WebAssembly 中的 Uno Platform 应用程序 运行 读取浏览器的地址栏并与之交互(类似于 HTML5 的 history 对象?)。我看到的示例不会这样做。

例如:用户输入:http://myUnoApp.com/home 我可以阅读 /home 部分吗?或者如果他转到我应用程序的 "Home" 页面,我可以将浏览器的地址栏设置为 http://myUnoApp.com/home 吗?我能否读取历史记录,以便在他按下浏览器的后退按钮时,我的应用知道去哪里?

您可以调用 JavaScript:

var url = WebAssemblyRuntime.InvokeJS("window.location.href");