[英]Is it possible writing a cross-platform desktop application with XHTML, CSS and JavaScript?
Is it possible writing a cross-platform desktop application with XHTML (or HTML), CSS and JavaScript? 是否可以使用XHTML(或HTML),CSS和JavaScript编写跨平台的桌面应用程序?
If the answer is yes, how to run this application? 如果答案是肯定的,那么如何运行此应用程序? Should I run it with a browser like Firefox?
我应该在Firefox之类的浏览器上运行它吗?
Note : Currently Windows supports HTML Application . 注意 :当前Windows支持HTML应用程序 。
HTA is really Old technology. HTA确实是旧技术。
Try tools like Titanium (Appcelerator). 尝试使用Titanium(Appcelerator)之类的工具。 They are tools, which render HTML content inside an APP.
它们是工具,可在APP内呈现HTML内容。 So, from outside, you will be running an executable but inside , it is loading a HTML file.
因此,从外部,您将运行一个可执行文件,而从内部,该文件正在加载HTML文件。
Same principle is being used in many apps now a days. 如今,许多应用程序都使用相同的原理。 Facebook for android is a best example
Facebook for Android是最好的例子
似乎您正在寻找的是Open Web Apps
如果客户端JavaScript和/或HTML / CSS黑客完成了您希望完成的任务,那么可以,并且确实需要使用诸如Firefox之类的用户代理。
Yes. 是。 With HTML5.
使用HTML5。
The other answer's solutions are great, but generally they assume that the user is connected to the internet to have a server-side that handles the data. 另一个答案的解决方案很好,但是通常它们假定用户已连接到Internet,并拥有处理数据的服务器端。
But it's possible to use Open Web Apps (as ZER0 suggested) with HTML5, which has a lot of support for offline web apps . 但是可以将Open Web Apps(如ZER0建议)与HTML5结合使用,HTML5对脱机Web应用程序有很多支持。
Pay attention to it, though. 不过要注意。 Even HTML5 assumes that eventually the user will have some sort of internet connection, and offline functionalities are seen as a "cache".
甚至HTML5都假定最终用户将具有某种Internet连接,并且脱机功能被视为“缓存”。 So, I'm not sure that this solution is enough for every requirement, because I don't know how much space HTML5 provides to offline applications
因此,我不确定该解决方案是否足以满足所有需求,因为我不知道HTML5为脱机应用程序提供了多少空间
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.