简体   繁体   English

适用于移动和台式PC的Web应用

[英]Web app for mobile and desktop PC

I want to develop web applications for both mobile and desktop(PC). 我想为移动和台式机(PC)开发Web应用程序。 After goggling i found no framework other than Phonegap but phonegap only compiles mobile apps i want to extend the functionality to desktop(PC) using asp.net . 闲逛之后,我发现除了Phonegap之外没有其他框架,但是phonegap只编译移动应用程序,因此我想使用asp.net将功能扩展到台式机(PC)。 So that i can create a common application that will run on mobile as well as desktop. 这样我就可以创建可以在移动设备以及台式机上运行的通用应用程序。 My aim is to create an offline application(wont mind using a web browser as a platform for running app on desktop). 我的目的是创建一个脱机应用程序(不要介意使用Web浏览器作为在桌面上运行应用程序的平台)。 Any suggestions would be greatly appreciated 任何建议将不胜感激 在此处输入图片说明

It depends on the functionality you want to offer. 这取决于您要提供的功能。 The company I work for started with native Android and iOS apps before we moved to using HTML5/Javascript web apps that work across all platforms. 我工作的公司开始使用原生Android和iOS应用程序,然后才转向使用可在所有平台上运行的HTML5 / Javascript网络应用程序。

HTML5 allows offline capabilities using the appcache as well as browser storage using websql and indexedDB. HTML5允许使用appcache的脱机功能以及使用websql和indexedDB的浏览器存储。 Its worth considering, however, that it is not possible to access things like phonebooks, or the camera without the use of a framework like phonegap/cordova 但是,值得考虑的是,如果不使用诸如phonegap / cordova之类的框架,就不可能访问电话簿或相机之类的东西。

I'd recommend checking out JQuery Mobile if you want a one size fits all approach. 如果您希望一种尺寸适合所有方法,我建议您查看JQuery Mobile Or a responsive framework like Twitter Bootstrap 或像Twitter Bootstrap这样的响应框架

If you said you don't mind using just web browser, why don't you just create your entire system in web, and write few separate applications that is literally a sized web-browser that auto directs you to your service website? 如果您说您不介意仅使用Web浏览器,为什么不只在Web中创建整个系统,并编写几个单独的应用程序,这些应用程序实际上就是一个可将您自动导向服务网站的大型Web浏览器?

For desktop, you can use any language that just to make a windowed web-browser, OR just write an alias that auto open the default browser and go to that url. 对于台式机,您可以使用仅用于制作窗口化Web浏览器的任何语言,或者仅编写自动打开默认浏览器并转到该URL的别名。

For mobile: android and iphone both supports: - make an alias for a web link - or easily make an app that is just a web browser, or with some additional feature on top(like just a menu view before your webview), although not sure if the verification process would be easy if you just got a pure webview for you App 对于移动设备:android和iphone都支持:-为Web链接创建别名-或轻松创建仅是Web浏览器或顶部具有某些附加功能(例如仅在Webview之前的菜单视图)的应用如果您只是拥有纯净的Webview应用程序,请确保验证过程是否容易

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

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