03 2019 档案
摘要:Unity [Dependency] 自动依赖注入
阅读全文
摘要:HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json") };//这里是去掉反斜杠再放回出去,json就只剩下双引号。 return result;
阅读全文
摘要://获取选中的所有Id值(数组) var id = new Array(); function GetIdss() { //全选按钮(获取所有选中的复选框)延时函数 setTimeout(GetIds, 1000); } //复选框的点击事件 function GetIds() { //获取所有的复
阅读全文
摘要:MemCached 和redis1.性能上: 性能上都很出色,具体到细节,由于Redis只使用单核,而Memcached可以使用多核,所以平均每一个核上Redis在存储小数据时比Memcached性能更高。而在100k以上的数据中,Memcached性能要高于Redis,虽然Redis最近也在存储大
阅读全文
摘要:MySqlParameter p1 = new MySqlParameter("id", MySqlDbType.Int32); p1.Value = sid; MySqlParameter p2 = new MySqlParameter("result", MySqlDbType.Int32); p2.Direct...
阅读全文
摘要:field : 'pickdate', field : 'pickdate', title : '送货日期', title : '送货日期', width : 100, width : 100, formatter : function(data, row, index) { formatter :
阅读全文
摘要:RouteConfig里面加一个 routes.MapRoute( name: "Download", url: "" ); 然后用ajax 访问Execl 运行的 public string OutAllCompany() { Dictionary<string, string> execl =
阅读全文
摘要:window.parent.location.reload(); location.reload(true); 相当于F5刷新页面
阅读全文
摘要:浅谈JSON.parse()、JSON.stringify()和eval()的作用 相信大家对于JSON应该不陌生,度娘对这个名词的解释大致如下: “JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式。它基于ECMAScript的一个子集。因为采用独立于语言
阅读全文