根据IP和端口号异步短时间判断服务器是否链接
摘要:/// /// 短时间判断是否可以连接 /// /// /// public static bool TestConnet(IPEndPoint ipe) { bool b = false; var client = new TcpClient(...
阅读全文
时间戳与时间相互转换(13位)(转)
摘要:时间戳是指格林威治时间1970年01月01日00时00分00秒(北京时间1970年01月01日08时00分00秒)起至现在的总秒数。
阅读全文
JS enter事件及数据不完整阻止下一步操作
摘要:阻止下一步操作: 1、return false; 2、e.preventDefault(); 但IE8不支持 下面介绍下javascript中event.keycode。 keycode 8 = BackSpace BackSpace keycode 9 = Tab Tab keycode 12 =
阅读全文