cordova s​​erve vs phonegap serve命令 [英] cordova serve vs phonegap serve commands

查看:66
本文介绍了cordova s​​erve vs phonegap serve命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Phonegap刚刚发布了一个应用程序 http://app.phonegap.com/,该应用程序监听的端口在使用时运行:

Phonegap just released an app http://app.phonegap.com/ which listens to the port that runs when using:

phonegap serve

我知道您也可以运行:

cordova serve

但主要区别是电话间隙服务不断地刷新内容,而 cordova服务似乎只是静态.

but the major difference is phonegap serve continually refreshes content while cordova serve seems to be only static.

有人知道是否可以运行 cordova s​​erve 命令并像 phonegap serve 一样连续刷新内容吗?

Does anyone know if it's possible to run the cordova serve command and have it continually refresh the content like phonegap serve does?

推荐答案

使用Cordova创建项目后,可以使用

After you've created a project using Cordova, you can serve it with Phonegap using the hack described in this question

简而言之,使用phonegap创建一个一次性项目,然后将.cordova目录从其中导入到您的Cordova项目中.

In short, create a throwaway project using phonegap, then import the .cordova directory from it into your Cordova project.

这篇关于cordova s​​erve vs phonegap serve命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆