javascript 如何使用 HTML5 开发移动应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7950115/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can I develop mobile applications using HTML5?
提问by Ramesh Solanki
I am able to develop android native applications using android SDK, but now I'd like to learn how to develop mobile applications using HTML5. Which tool is used to develop these mobile application in HTML5? Can anybody help me? Thanks in advance.
我能够使用 android SDK 开发 android 本机应用程序,但现在我想学习如何使用 HTML5 开发移动应用程序。使用哪种工具在 HTML5 中开发这些移动应用程序?有谁能够帮我?提前致谢。
采纳答案by blessenm
Sencha Touchis a good Javascript framework to create mobile applications. It supports all phones the utilize the webkit for their browser.
Sencha Touch是一个很好的 Javascript 框架来创建移动应用程序。它支持所有使用 webkit 浏览器的手机。
It can be wrapped in phonegap to utilize the phone specific API's. Sencha is now creating their own wrapping system to submit apps to the appstores.
它可以包装在 phonegap 中以利用电话特定的 API。Sencha 现在正在创建他们自己的包装系统以将应用程序提交到应用程序商店。
回答by Hyman
回答by lc2817
If you want to embed your html inside an android application, you can use the webviewwidget for android.
如果您想将您的 html 嵌入到 android 应用程序中,您可以使用android的webview小部件。
Now, talking about how to do your webview itselft. I would recommend to use a mobile framework to build a good looking and accessible application without too much difficulty. I have worked with Jquery Mobile, and I would say it is a good way to start.
现在,谈论如何做你的 webview 本身。我建议使用移动框架来构建一个外观漂亮且易于访问的应用程序,而不会遇到太多困难。我曾与Jquery Mobile合作过,我会说这是一个很好的开始方式。
回答by user3370268
Use Apache Cordova http://cordova.apache.org/as the container for displaying HTML 5 pages. Use Twitter Bootstrap for creating responsive web pages which automatically resize components based on the size/type of the screen on which the app is being viewed.
使用 Apache Cordova http://cordova.apache.org/作为显示 HTML 5 页面的容器。使用 Twitter Bootstrap 创建响应式网页,这些网页会根据正在查看应用程序的屏幕的大小/类型自动调整组件的大小。
回答by Max Katz
Another tool you may want to try is Tiggr (http://gotiggr.com). Tiggr is a cloud service for building HTML5 mobile apps. It comes with visual jQuery Mobile designer.
您可能想尝试的另一个工具是 Tiggr (http://gotiggr.com)。Tiggr 是一种用于构建 HTML5 移动应用程序的云服务。它带有可视化的 jQuery Mobile 设计器。
Note: I'm the Developer Advocate for Tiggr
注意:我是 Tiggr 的开发者倡导者
回答by user0b101010
Since you're an Android developer, you're probably used to writing in Java. You might thus also want to look into Google Web Toolkit, which enables you to write HTML5 apps in Java. There are a number of different GWT libraries for mobile widgets. The questions boils down to whether you want to write in Java or in Javascript.
由于您是一名 Android 开发人员,因此您可能习惯于使用 Java 进行编写。因此,您可能还想查看 Google Web Toolkit,它使您能够用 Java 编写 HTML5 应用程序。移动小部件有许多不同的 GWT 库。问题归结为您想用 Java 还是用 Javascript 编写。
回答by Hammad Tariq
You may also want to try MoSync (www.mosync.com) for it, the advantage of MoSync is - it's truly cross platform and it let's you write hybrid applications as well (using C++ and HTML5) and being cross platform if you write a plugin it goes on to every platform, which would mean we don't have to write separate plugins in Java, Object C, Dot Net etc. as it is the case on PhoneGap.
您可能还想为它尝试 MoSync (www.mosync.com),MoSync 的优点是 - 它是真正的跨平台,它让您也可以编写混合应用程序(使用 C++ 和 HTML5)并且如果您编写一个跨平台插件它适用于每个平台,这意味着我们不必像在 PhoneGap 上那样用 Java、Object C、Dot Net 等编写单独的插件。
I wrote a tutorial to make a HTML5 twitter client app in a minute or so using MoSync and Sencha Touchand it may help you.
我写了一个使用 MoSync 和 Sencha Touch 在一分钟左右制作 HTML5 twitter 客户端应用程序的教程,它可能对你有所帮助。
回答by John Chen
回答by Omer Aslam
A unified, HTML5-based user interface system for all popular mobile device platforms, built on the rock-solid jQuery and jQuery UI foundation.
一个统一的、基于 HTML5 的用户界面系统,适用于所有流行的移动设备平台,建立在坚如磐石的 jQuery 和 jQuery UI 基础之上。
With Drag and DropUI tool
使用拖放UI 工具