将Javascript应用转换为Windows应用 [英] Convert Javascript app into Windows app
问题描述
除了Adobe Air之外还有其他解决方案吗?
我听说V8有点东西。
暂时没有时间,用另一种语言写整个应用程序再写2次以上代码。
只需将文件的扩展名更改为.hta即可将普通HTML文件转换为Windows应用程序/ p>
Windows会将您的* .hta文件视为winform应用程序。这被称为html应用程序 - HTA。
此处有更多文件:
当然,您可以在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 :
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屋!