2021年7月27日

摘要: 1.WebSocket 服务端 static void Main(string[] args) { IPEndPoint localEP = new IPEndPoint(IPAddress.Any, 1818); FleckLog.Level = LogLevel.Debug; var allSo 阅读全文
posted @ 2021-07-27 17:07 召唤师857 阅读(996) 评论(0) 推荐(0) 编辑
 
摘要: 发送和接收邮箱要选择有smtp服务的邮箱,如:qq.com和163.com等 1.首先发送邮箱要开通smtp服务(找不到开启位置的可以百度一下,这里不做赘述) 2.如何生成授权码 3.Demo源码 public string smtpService = "smtp.qq.com";//发送邮箱的sm 阅读全文
posted @ 2021-07-27 17:04 召唤师857 阅读(95) 评论(0) 推荐(0) 编辑
 
摘要: 直接贴代码(源码中部分CSS和JS文件请到官网中下载引用) @{ Layout = null; } <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title>Index</ti 阅读全文
posted @ 2021-07-27 16:46 召唤师857 阅读(213) 评论(0) 推荐(0) 编辑
 
摘要: 一、获取当期时间并转为特定格式: 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) 编辑