javascript 制作跨平台应用程序的最佳方式?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23181675/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-28 00:29:31  来源:igfitidea点击:

Best way to make cross-platform apps?

javascriptandroidioshtmlcross-platform

提问by Glenn S?nderskov

My question is: what is the best/easiest way to make cross-platform apps/games? iOS and Android - and Windows Phone if possible.

我的问题是:制作跨平台应用程序/游戏的最佳/最简单的方法是什么?iOS 和 Android - 如果可能,还有 Windows Phone。

I have read about many different ways. HTML5 and JavaScript - and then just the overall implementation for the specific platforms. I have read about some 'converting tools' - fx Intel Porter Tool. And names like PhoneGap, Intel XDK, Appcelerator and Mosync and many others are showing up.

我已经阅读了许多不同的方法。HTML5 和 JavaScript - 然后只是特定平台的整体实现。我已经阅读了一些“转换工具” - fx Intel Porter Tool。诸如 PhoneGap、Intel XDK、Appcelerator 和 Mosync 之类的名字正在出现。

So I'm just all confused.. What would you prefer?

所以我很困惑..你更喜欢什么?

I'm not completely new in iOS programming, but not that much experienced either. I have made a few apps and games. Else I have a little experience with HTML and CSS. But I have never been working with HTML5 and JavaScript. I'm also aware that native platform specific apps is better that hybrid apps. But after all this I would love to hear from you : what do you prefer or not? :-)

我对 iOS 编程并不完全陌生,但也没有那么多经验。我制作了一些应用程序和游戏。否则我对 HTML 和 CSS 有一些经验。但我从来没有接触过 HTML5 和 JavaScript。我也知道本机平台特定的应用程序比混合应用程序更好。但毕竟这一切,我很想听听您的意见:您喜欢或不喜欢什么?:-)

采纳答案by Suhas

Refer- Which Cross Platform Mobile Development Platform Should You Choose

参考-您应该选择哪个跨平台移动开发平台

You can read this document and choose whatever you feel comfortable to use. If you are using HTML5, CSS, JavaScript then you can use phonegap in my opinion but let it be refer above site you will get basic idea and so that you can choose whatever which you feel simple.

您可以阅读本文档并选择您觉得使用起来方便的任何内容。如果您正在使用 HTML5、CSS、JavaScript,那么在我看来您可以使用 phonegap,但让它参考上面的网站,您将获得基本的想法,这样您就可以选择任何您觉得简单的东西。

回答by BeLi

For making Apps I think HTML5 alternatives like PhoneGap could be the easiest way, also you can take al look at Xamarinfor native cross-platform Apps, but you need to get a paid license to use it in a real project and, if you don't, you should learn C#.

对于制作应用程序,我认为像 PhoneGap 这样的 HTML5 替代品可能是最简单的方法,你也可以看看Xamarin的原生跨平台应用程序,但你需要获得付费许可才能在实际项目中使用它,如果你不这样做不,你应该学习C#。

In the case of making games, I have tried different platforms and I think Unityis the easiest and fastest way to create cross-platform quality games, even for simple 2D games, and you can do it in JavaScript.

在制作游戏的情况下,我尝试了不同的平台,我认为Unity是创建跨平台质量游戏的最简单、最快捷的方式,即使是简单的 2D 游戏,你也可以用 JavaScript 来完成。

回答by santyas

The best is Phonegap or Titanium (more powerful for me) http://www.appcelerator.com/titaniumYou should use the one you feel more comfortable. And with xcode and objective-c you can work with html-css-js but never export cross-platform.

最好的是Phonegap 或Titanium(对我来说更强大)http://www.appcelerator.com/titanium你应该使用你觉得更舒服的那个。使用 xcode 和 Objective-c,您可以使用 html-css-js,但不能跨平台导出。

回答by d13

HTML5/JavaScript. Then use node-webkitto target desktop systems and coccoonJSor Phonegapto target apps.

HTML5/JavaScript。然后使用node-webkit定位桌面系统,使用coccoonJSPhonegap定位应用程序。