摘要:
public class RabbitMQHelper { ConnectionFactory factory = null; IConnection connection = null; IModel channel = null; public RabbitMQHelper(string hos 阅读全文
摘要:
Thread //开启线程, 构造函数参数可以是委托,可以是方法名, 可以是ThreadStart(不带参数),ParameterizedThreadStart(可以在start内传入object类型参数) 类型委托 //Thread th = new Thread(()=> { }); Threa 阅读全文
摘要:
一、NLog 注: NLog可以将日志记录在 数据库, 文件, 控制台, 以下只记录文件日志配置 1. WebAPI分Controller层级打印日志配置 <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="ht 阅读全文
摘要:
XMLHttpRequest:AJAX核心的类 $("#btnGetDate").click(function () { //开始通过AJAX向服务器发送请求. var xhr; if (XMLHttpRequest) {//表示用户使用的高版本IE,谷歌,狐火等浏览器 xhr = new XMLH 阅读全文
摘要:
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. 阅读全文
摘要:
$(this).index用来获取取到的所有元素的序号 <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charse 阅读全文
摘要:
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title 阅读全文
摘要:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. 阅读全文
摘要:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. 阅读全文
摘要:
利用反射,完成可以扩展功能的计算器 阅读全文