简体   繁体   English

Ionic Framework-在手机上查看

[英]Ionic Framework - View on mobile

I need to display my ionic application on my iPhone. 我需要在iPhone上显示离子应用程序。

I have developed the application within the www folder and have used the command "ionic serve -l" to test my app in safari. 我已经开发了www文件夹中的应用程序,并使用命令“ ionic serve -l”在野生动物园中测试了我的应用程序。

I now need to demonstrate my application on my phone. 现在,我需要在手机上演示我的应用程序。 However, when I upload my application to the "ionic view" app it does not display in the same format on my phone, prior to when I have been testing in the browser. 但是,当我将应用程序上传到“离子视图”应用程序时,在浏览器中进行测试之前,它不会以相同的格式显示在手机上。

Can somebody please shed some light in how I may solve this issue.. 有人可以说明我如何解决这个问题。

Thanks, Mark 谢谢马克

Use ionic run android or ionic run ios to run your application on a connected device or emulator. 使用ionic run androidionic run ios在连接的设备或模拟器上运行您的应用程序。 Read more about it here: http://ionicframework.com/docs/guide/testing.html , http://ionicframework.com/docs/cli/run.html 在此处了解更多信息: http : //ionicframework.com/docs/guide/testing.html,http : //ionicframework.com/docs/cli/run.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM