简体   繁体   English

是否可以使用XHTML,CSS和JavaScript编写跨平台的桌面应用程序?

[英]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.

相关问题 是否可以在跨平台应用程序中使用javascript查看存储在SQLite中的数据? - Is it possible to see data stored in SQLite using javascript in Cross-Platform Apps? 跨平台,跨浏览器的Javascript性能分析 - Cross-platform, cross-browser Javascript performance profiling 跨平台开发 - Cross-platform development 使用HTML,CSS和JavaScript的多平台桌面应用程序框架 - Multi-platform Desktop application frameworks using HTML, CSS, and JavaScript 为SharePoint 2013创建跨平台移动应用程序 - Creating a Cross-Platform Mobile Application for SharePoint 2013 开发跨平台自包含 HTML 应用程序 - Developing a cross-platform self-contained HTML application 将JavaScript模块添加到全局范围的跨平台方法是什么? - What is the cross-platform way to add a JavaScript module to the global scope? 如何在JavaScript中实现准确的跨平台游戏循环? - How to implement an accurate, cross-platform game loop in javascript? 在javascript中是否有任何跨平台的方法来验证xml对xsd? - Is there ANY cross-platform way of validating xml against an xsd in javascript? 跨平台桌面应用程序的最佳JavaScript引擎 - best javascript engine for cross platform desktop app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM