gpt4 book ai didi

android - 使用ionic 3的平台之间没有区别

转载 作者:行者123 更新时间:2023-11-28 23:48:16 26 4
gpt4 key购买 nike

我想尝试 ionic 3,但一开始我遇到了一些问题。当我使用 ionic labionic serve 命令启动应用程序时,当浏览器显示平台时,每个设备(ios、android、windows )

尽管如果我在 app.module 中将 IonicModule.forRoot(MyApp) 设置为 IonicModule.forRoot(MyApp, {mode: 'ios'}) .ts 它会在所有设备上更改为 iOS View ,或者如果我设置为 IonicModule.forRoot(MyApp, {mode: 'md'}) 它会在所有设备上更改为 Android .但是,当我使用默认代码启动应用程序时,每个设备都显示相同的 View ,而且我永远无法访问设备以显示它们自己的 View 。

Here you can see the default operation

And here when I sterted with IonicModule.forRoot(MyApp, {mode: 'ios'}) command

有什么想法为什么不像我在互联网上看到的所有视频那样有效?感谢您的帮助。

最佳答案

在没有看到您打开的 URL 的情况下,这是我的最佳猜测:尝试打开

http://localhost:8100/ionic-lab

而不是 http://localhost:8200 .在同样的情况下为我工作。

关于android - 使用ionic 3的平台之间没有区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52243485/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com