html - 你好未定义
问题描述
<html>
<head>
<script type="text/vbscript" >
Function Hello()
Msgbox "Hello World"
End Function
</script>
</head>
<body>
<input type="button" value="click" onclick="Hello()" />
</body>
</html>
单击按钮后,我得到 Hello is undefined
解决方案
当前没有浏览器支持 VBScript。
如果你想在客户端使用它,那么你需要:
- 安装旧版本的 Internet Explorer
- 使用 Internet Explorer 11 并将其配置为在仿真设置中使用 IE 10 文档模式。
一般来说,如果你想在浏览器中进行客户端编程,那么你需要编写 JavaScript(或者你可以转换成 JavaScript 的东西,比如 TypeScript)。
推荐阅读
- javascript - Array.prototype.filter 的猴子补丁破坏了 AngularJS 1.6
- typescript - 单元测试 mocha Visual Studio 代码描述未定义
- automation - Jira 应用程序属性存储在哪里
- python - twitter api 到 mysql 使用 python
- java - 断言文本时如何在Java中跳过一行
- jsch - JSch session.openChannel
- django - 如何在 apiview 中获取访问令牌
- r - 如何检查文件是否在 R 中是 zip 文件?
- python - ground_truth = np.squeeze(np.asarray(true_labels))
- powershell - 如何通过 powershell 和批处理从我的网站下载东西?