是否可以用html代码运行程序 [英] is it possible to run a program in html codes

查看:124
本文介绍了是否可以用html代码运行程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[ ]

推荐答案

非常愚蠢和不完整的问题.您可以使用HTML开发网站,而不能仅使用HTML编写程序. HTML是基于Web的. Internet上有很多使用HTML的网站.但是您只能使用HTML创建静态网站.对于动态网站,您应该使用带有数据库的ASP/ASP.NET/PHP/JSP/etc....
very stupid & incomplete question. you can develop website using HTML & you can''t make program using that only. HTML is for web based. There is lot of sites running in internet which is using HTML. But you can make only static websites using HTML. For dynamic website you should go with ASP/ASP.NET/PHP/JSP/etc... with database.


是的,但这实际上取决于您的意思.您可以运行 HTA (HTML应用程序),它实际上只是带有HTA的HTML文件扩大.例如,创建一个文本文件并将以下文本放入其中:
Yes, but it really depends on what you mean. You can run an HTA (HTML Application), which is really just an HTML file with an HTA extension. For example, create a text file and put the following text in it:
<b>Hello</b>


然后,将该文件命名为"test.hta".当您打开它时,它将显示在其自己的窗口中.我非常确定您可以在HTA中使用JavaScript.

您也可以只创建一个HTML文件,然后在浏览器中打开它.使用一些JavaScript,您可以使其表现得非常像传统应用程序.

您可以创建Java小程序(不要与JavaScript混淆),它是用Java编写的小程序,并显示在HTML页面中. Java小应用程序的替代方案是Flash应用程序或Silverlight应用程序,它们的工作方式与Java小应用程序非常相似. Java applet可以使用Java编程,Flash应用程序可以使用ActionScript编程,而Silverlight可以使用XAML和C#或VB(您可以选择)编程.

现在,如果您的意思是我可以在ASP.NET网站中运行HTML页面",答案仍然是是".在ASP.NET网站上创建HTML页面没有问题...它将像在其他任何网站上一样运行.

顺便说一句,以后再问一个问题时,请更具描述性.


Then, name that file "test.hta". When you open it, it will display in its own Window. I''m pretty sure you can use JavaScript with an HTA.

You could also just create an HTML file and open that in a browser. With some JavaScript, you could get it to act very much like a traditional application.

You can create a Java applet (not to be confused with JavaScript) that is a little program written in Java that is displayed in an HTML page. Alternatives to a Java applet would be a Flash application or a Silverlight application, which work much like Java applets. Java applets are programmed with Java, Flash applications with ActionScript, and Silverlight with XAML and C# or VB (your choice).

Now, if you meant "can I run an HTML page in an ASP.NET website", the answer is still "yes". There is no problem with creating an HTML page on an ASP.NET website... it will run as it would on any other website.

By the way, please be more descriptive when you ask a question in the future.


这篇关于是否可以用html代码运行程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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