跨平台移动应用程序开发框架如何工作?

问题描述:

Rhodes、Phonegap 和 Appcelerator 如何能够采用 Javascript 或 Ruby,并将它们编译成二进制文件,用于通常需要使用 Obj-C、Java 和其他语言编写应用程序的应用程序 SDK?

How are Rhodes, Phonegap, and Appcelerator able to take Javascript or Ruby, and compile them into binaries for app SDKs that normally require apps to be written in Obj-C, Java, and others?

Phonegap 使用默认的浏览器渲染引擎,并使用它来显示您的应用程序.然后 JavaScript 由框架的本机(编译)部分处理.

Phonegap uses the default browser rendering engine, and uses that to display your application. The javascript is then handled by the native (compiled) part of the framework.

Appcelerator 使用了一些类似的东西,但如果我没记错的话,它会编译整个应用程序.

Appcelerator uses something simular, but compiles the whole application if i remember correctly.

MoSync 使用与 javaME 有点类似的设置.

MoSync uses a somewhat simular setup as javaME.

Rhodes 使用本地服务器.它使用它与设备进行通信.

Rhodes uses local server. It uses this to communicate with the device.