当前位置: 移动技术网 > IT编程>脚本编程>VBScript > vbs引用另一个vbs的代码

vbs引用另一个vbs的代码

2017年12月08日  | 移动技术网IT编程  | 我要评论
第一个页面:

<html>
<head>
<script language="vbscript">
sub hello()
document.all.myscriptlet.hello
end sub
</script>
</head>
<body onload="hello()">
<object id="myscriptlet"
type="text/x-scriptlet"
data="2.htm"
height="0" width="0">
</object>
</body>
</html>

2.htm里的源码:

<script language="vbscript">
sub public_hello()
msgbox "hello world!"
end sub
</script>

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网