我正在向VbScript做自我介绍,有人能告诉我我的代码出了什么问题吗?当我在IE中运行时输出是空白的..。我期待着“你好世界”
E1:我要将文件保存为.html
<html>
<body>
<script language="vbscript" type="text/vbscript">
document.write("Hello World!")
</script>
</body>
</html>发布于 2017-07-04 19:42:03
document.write()是JavaScript而不是VBScript。您只需使用tge如下所示在浏览器上显示:
<html>
<body>
<script>
document.write("Hello World!");
</script>
</body>
</html>但是如果你真的想使用VBScript,那么你需要使用一个支持浏览器,我觉得目前还没有这样的浏览器。看起来,在使用该功能之前,您可能需要打开它:
VBScript in Internet
以下是打开或关闭中的VBScript的简单步骤:
https://stackoverflow.com/questions/44913105
复制相似问题