简体   繁体   English

独立的离线html5网络应用程序?

[英]Stand alone off-line html5 web apps?

If I write an html5 web app for an iPad and plan on having it use local storage when the user is off-line.... is there a way I could wrap everything up in a zip-file and send it in a email then have then deploy it themself? 如果我为iPad编写一个html5 Web应用程序并计划在用户脱机时使用本地存储...。有一种方法可以将所有内容打包成zip文件并通过电子邮件发送,然后然后自己部署它?

Can you get an off-line iPad web app going without being on-line and downloading it? 您可以离线运行iPad Web应用程序而不必在线下载它吗?

Something like this... http://sixrevisions.com/web-development/html5-iphone-app/ and then send it as a package to someone else? 这样的东西... http://sixrevisions.com/web-development/html5-iphone-app/然后将其作为软件包发送给其他人?

Not by default, no. 默认情况下,不。 iOS (for some reason) has no concept of "local storage" outside an App's own sandbox, that's why Mobile Safari can't download or upload files (besides photos). iOS(出于某种原因)在应用程序自己的沙箱外部没有“本地存储”的概念,这就是Mobile Safari无法下载或上传文件(照片除外)的原因。

The solution is to use a platform like PhoneGap which lets you use the HTML5 platform to create native-like applications (that also work on Android and WinPho too). 解决方案是使用像PhoneGap这样的平台,该平台使您可以使用HTML5平台创建类似本机的应用程序(也可以在Android和WinPho上运行)。 It's easy to get started with it, so I suggest you give that a go. 它很容易上手,所以我建议您尝试一下。

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

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