p124ie_only_mixing_vb_and_jscript2.htm
来自「javascript source code part2」· HTM 代码 · 共 35 行
HTM
35 行
<HTML>
<HEAD>
<script language="JScript"><!--
function jsHandler(){
//The following statement won't work well!
noSuchObj.missingProp = 2;
}
//--></script>
<script language="VBScript"><!--
ivbExclamation = 48
'Wrap the JS handler in this nice safe VBS
Function vbsHandler()
On Error Resume Next
jsHandler()
If Err.number<> 0 Then
msgbox "Sorry, we had an error", ivbExclamation
End If
End Function
'--></script>
</HEAD>
<BODY>
<P>Click here to crash and burn:
<INPUT id=cmdJS type=button value="Working Without a Net" onclick="jsHandler()"> </P>
<P>Click here if you prefer to live safely:
<INPUT id=cmdVBS type=button value="Nice and Safe" onclick="vbsHandler()">
</P>
</BODY
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?