用Javascript的try{}catch(e){}也可以获得VBscript的错误
<script language="vbscript">
function Test(a,b)
Test = a/b
end function
</script>
<script language="javascript">
try
{
alert(Test(6,0));
}
catch(e)
{
alert(e.message);
}
</script>
function Test(a,b)
Test = a/b
end function
</script>
<script language="javascript">
try
{
alert(Test(6,0));
}
catch(e)
{
alert(e.message);
}
</script>
QQ:273352165
evlon#126.com
转载请注明出处。