如何创建脱机和在线工作的网站? [英] How to create a site that works offline and online؟

查看:102
本文介绍了如何创建脱机和在线工作的网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何创建一个离线和在线工作的网站?



我尝试过:



如何创建一个离线和在线工作的网站?

解决方案

Quote:

如何创建一个离线和在线工作的网站?



我认为你需要回过头来重新思考这个想法。

当用户离线时工作的网站的想法是......嗯...难以理解,因为他们需要在线打开它...


Quote:

如何创建一个离线和在线工作的网站?



从原则上讲,任何互联网网站在线,整个想法是错误的。除非离线对你有其他意义。

这就像试着打电话而没有电话。


你需要做的就是创建一个本地网站。如果此站点需要任何Web服务器功能(例如PHP,ASP.Net,SQL),您还需要在本地计算机上安装Web服务器(例如Tomcat,IIS)。



您可以创建脚本来检查并查看是否存在互联网连接,如果存在,您可以连接到同步的在线资源或您的功能所需的任何内容。

How to create a site that works offline and online؟

What I have tried:

How to create a site that works offline and online؟

解决方案

Quote:

How to create a site that works offline and online؟


I think you need to go back and rethink this whole idea.
The idea of a website that works when the user is offline is ... umm ... difficult to comprehend, given that they need to be online to open it ...


Quote:

How to create a site that works offline and online؟


Since by principle, any internet site is online, the whole idea is wrong. Unless 'offline' have another meaning for you.
It is like trying to do a phone call without phone.


What you would need to do is to create a "local" web site. If this site is going to need any web server functionality (such as PHP, ASP.Net, SQL) you would also need to have a web server (eg Tomcat, IIS) installed on your local machine as well.

You could create scripting to check and see if internet-connectivity is present and if so you could connect to the online resource to sync or whatever it is that you need for your functionality.


这篇关于如何创建脱机和在线工作的网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆