摘要: 第一步先引用Ninject: 第二步:创建个类: 第三步:Global里面配置一下; 第四步:可以使用你创建的实现方法的类(需要使用接口,继承接口的类来实现接口里面的方法) 阅读全文
posted @ 2019-04-02 10:44 Code麒麟 阅读(275) 评论(0) 推荐(0) 编辑
摘要: Unity [Dependency] 自动依赖注入 阅读全文
posted @ 2019-03-29 11:07 Code麒麟 阅读(773) 评论(1) 推荐(0) 编辑
摘要: HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json") };//这里是去掉反斜杠再放回出去,json就只剩下双引号。 return result; 阅读全文
posted @ 2019-03-22 15:40 Code麒麟 阅读(8064) 评论(0) 推荐(0) 编辑
摘要: //获取选中的所有Id值(数组) var id = new Array(); function GetIdss() { //全选按钮(获取所有选中的复选框)延时函数 setTimeout(GetIds, 1000); } //复选框的点击事件 function GetIds() { //获取所有的复 阅读全文
posted @ 2019-03-21 09:58 Code麒麟 阅读(1431) 评论(0) 推荐(0) 编辑
摘要: MemCached 和redis1.性能上: 性能上都很出色,具体到细节,由于Redis只使用单核,而Memcached可以使用多核,所以平均每一个核上Redis在存储小数据时比Memcached性能更高。而在100k以上的数据中,Memcached性能要高于Redis,虽然Redis最近也在存储大 阅读全文
posted @ 2019-03-14 09:30 Code麒麟 阅读(158) 评论(0) 推荐(0) 编辑
摘要: MySqlParameter p1 = new MySqlParameter("id", MySqlDbType.Int32); p1.Value = sid; MySqlParameter p2 = new MySqlParameter("result", MySqlDbType.Int32); p2.Direct... 阅读全文
posted @ 2019-03-13 16:53 Code麒麟 阅读(164) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-03-13 14:39 Code麒麟 阅读(3) 评论(0) 推荐(0) 编辑
摘要: field : 'pickdate', field : 'pickdate', title : '送货日期', title : '送货日期', width : 100, width : 100, formatter : function(data, row, index) { formatter : 阅读全文
posted @ 2019-03-12 20:25 Code麒麟 阅读(1154) 评论(0) 推荐(0) 编辑
摘要: RouteConfig里面加一个 routes.MapRoute( name: "Download", url: "" ); 然后用ajax 访问Execl 运行的 public string OutAllCompany() { Dictionary<string, string> execl = 阅读全文
posted @ 2019-03-12 16:43 Code麒麟 阅读(133) 评论(0) 推荐(0) 编辑
摘要: window.parent.location.reload(); location.reload(true); 相当于F5刷新页面 阅读全文
posted @ 2019-03-08 21:22 Code麒麟 阅读(721) 评论(0) 推荐(0) 编辑