将Javascript应用转换为Windows应用 [英] Convert Javascript app into Windows app

查看:71
本文介绍了将Javascript应用转换为Windows应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除了Adobe Air之外还有其他解决方案吗?
我听说V8有点东西。



暂时没有时间,用另一种语言写整个应用程序再写2次以上代码。

解决方案

只需将文件的扩展名更改为.hta即可将普通HTML文件转换为Windows应用程序/ p>

Windows会将您的* .hta文件视为winform应用程序。这被称为html应用程序 - HTA。



此处有更多文件:



Html应用程序



当然,您可以在HTA文件中附加尽可能多的Javascript,或者甚至使用外部* .js文件,如下所示:

 < script src =your file.js>< / script> 


Is there any solutions except Adobe Air? I have heard that V8 kinda have something there.

Just don't have time for now, to write on another language whole app and then write 2x more code.

解决方案

You can make a normal HTML file become a Windows App simply by changing the file's extension into ".hta"

Windows will treat your *.hta file like a winform application. This is called "html application" - HTA.

More documentations herer :

Html application

And of course, you can attach as much Javascript as you want in that HTA file, or even use external *.js file by doing like this :

<script src="your file.js"></script>

这篇关于将Javascript应用转换为Windows应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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