如何在没有浏览器的情况下显示弹出窗口 [英] How to show a popup without a browser

查看:97
本文介绍了如何在没有浏览器的情况下显示弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个警报类型功能来解决错误。我没有使用浏览器并使用javascript作为windows管理目的。如果我不使用浏览器,那么他们是一种查看varibales值的方法吗?

I need an "alert" type feature to troubleshoot an error. I am not using a browser and using javascript as windows administaration purposes. So is their a way to view a varibales value if I am not using a browser?

推荐答案

JScript 是一种基于 ECMAScript 标准的脚本语言。

JScript is a scripting language based on the ECMAScript standard.

JScript 是作为 Windows脚本引擎实现的。这意味着它可以插入到任何支持 Windows Script 主机的应用程序,例如Internet Explorer,Active Server Pages等。它还意味着任何支持的应用程序Windows Script可以使用多种语言--JScript,VBScript,Perl等。

JScript is implemented as a Windows Script engine. This means that it can be plugged in to any application that supports the Windows Script host, such as Internet Explorer, Active Server Pages, etc. It also means that any application supporting Windows Script can use multiple languages — JScript, VBScript, Perl, and others.

由于我不确定的原因,但我认为它与事实有关 DOM 在浏览器外部不可用, alert 功能在浏览器外部也不可用。在这种情况下,为了向用户弹出一个对话框,您可以使用以下代码:

For reasons that I am not sure about, but I believe it to be related to the fact the the DOM is not available outside the browser, the alert function is also not available outside the browser. In order to popup a dialog box to the user in this case you can use the following code:

WScript.Echo('The quick brown fox jumped over the lazy dog');

这篇关于如何在没有浏览器的情况下显示弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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