2021年7月27日

摘要: 一、获取当期时间并转为特定格式: string tradeTime = DateTime.Now.ToString("yyyyMMddHHmmss", DateTimeFormatInfo.InvariantInfo); 设置所需要的时间格式: string tradeTime = DateTime 阅读全文
posted @ 2021-07-27 16:28 召唤师857 阅读(811) 评论(0) 推荐(0) 编辑
 
摘要: 键盘事件 一般处理键盘按键事件我们采用这样的方式 document.onkeydown=function (event) { //检测按下哪个键,作相应处理}; event为键盘事件,对于chrome,firefox,IE(Edge),IE10,IE9均能支持function自带的e,而ie8以下只 阅读全文
posted @ 2021-07-27 15:55 召唤师857 阅读(590) 评论(0) 推荐(0) 编辑
 
摘要: 获取主机名 var hostname = location.hostname;获取端口号 var port = location.port;获取主机名+端口号 var host = location.host; 阅读全文
posted @ 2021-07-27 15:41 召唤师857 阅读(339) 评论(0) 推荐(0) 编辑