摘要: public class RabbitMQHelper { ConnectionFactory factory = null; IConnection connection = null; IModel channel = null; public RabbitMQHelper(string hos 阅读全文
posted @ 2020-04-30 16:13 Jason's_Blog 阅读(324) 评论(0) 推荐(0) 编辑
摘要: Thread //开启线程, 构造函数参数可以是委托,可以是方法名, 可以是ThreadStart(不带参数),ParameterizedThreadStart(可以在start内传入object类型参数) 类型委托 //Thread th = new Thread(()=> { }); Threa 阅读全文
posted @ 2020-04-22 23:56 Jason's_Blog 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 一、NLog 注: NLog可以将日志记录在 数据库, 文件, 控制台, 以下只记录文件日志配置 1. WebAPI分Controller层级打印日志配置 <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="ht 阅读全文
posted @ 2020-04-22 23:46 Jason's_Blog 阅读(2114) 评论(0) 推荐(0) 编辑
摘要: XMLHttpRequest:AJAX核心的类 $("#btnGetDate").click(function () { //开始通过AJAX向服务器发送请求. var xhr; if (XMLHttpRequest) {//表示用户使用的高版本IE,谷歌,狐火等浏览器 xhr = new XMLH 阅读全文
posted @ 2018-09-10 22:22 Jason's_Blog 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www. 阅读全文
posted @ 2018-03-19 23:09 Jason's_Blog 阅读(150) 评论(0) 推荐(0) 编辑
摘要: $(this).index用来获取取到的所有元素的序号 <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charse 阅读全文
posted @ 2018-03-13 23:33 Jason's_Blog 阅读(132) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title 阅读全文
posted @ 2018-03-08 23:02 Jason's_Blog 阅读(846) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. 阅读全文
posted @ 2018-03-06 08:59 Jason's_Blog 阅读(128) 评论(1) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. 阅读全文
posted @ 2018-03-05 20:51 Jason's_Blog 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 利用反射,完成可以扩展功能的计算器 阅读全文
posted @ 2018-03-04 23:06 Jason's_Blog 阅读(263) 评论(0) 推荐(0) 编辑