封装了一下,要用的话直接调用下面getEvent函数即可 function getEvent() { if (document.all) { return window.event; //for ie } func = getEvent.caller; while (func != null) { var arg0 = func.arguments[0]; if (arg0) { if ((arg0.constructor == Event || arg0.constructor == Mo
Public Function OnlyNumberAndDot(inKeyAscii As Integer) As Integer '函数说明:文本框只支持数字.小数点.退格符.负号.Del键 '入口说明: ' inKeyAscii 'Text 控件的 KeyPress 事件的 KeyAscii 参数 '出口说明: '返回值:inKeyAscii If inKeyAscii < 48 Or inKeyAscii > 57 Then '选取范围之内的 If (inKeyAscii <&g