2019年1月23日
摘要: // 在body下创建一个div var createDiv=document.createElement("div"); createDiv.id='id_i'; createDiv.class="class_c"; document.body.appendChild(createDiv); // 阅读全文
posted @ 2019-01-23 16:57 絆τ 阅读(651) 评论(0) 推荐(0) 编辑
2018年12月14日
摘要: 1.注入 private readonly IUnitOfWorkManager unitOfWorkManager; 2.构造 3.开启新事物 using (var unitOfWork = unitOfWorkManager.Begin(TransactionScopeOption.Requir 阅读全文
posted @ 2018-12-14 10:43 絆τ 阅读(436) 评论(0) 推荐(1) 编辑
2018年11月26日
摘要: 1.安装Nginx【自行百度】 2.安装dotnet运行时【自行百度】 3.配置Nginx—— /etc/nginx/conf.d/default.conf server { listen 80; server_name localhost; location / { proxy_pass http 阅读全文
posted @ 2018-11-26 08:51 絆τ 阅读(727) 评论(0) 推荐(0) 编辑
2018年11月24日
摘要: 一言不合就开始帖代码 XSSFWorkbook workbook = new XSSFWorkbook(); //创建工作簿 XSSFSheet sheet = (XSSFSheet)workbook.CreateSheet("test"); //创建表单 XSSFRow headerRow = ( 阅读全文
posted @ 2018-11-24 08:53 絆τ 阅读(1227) 评论(0) 推荐(0) 编辑
2018年11月20日
摘要: 鉴于前后端分离发展的迅速。前端很多时间控件都会读UTC时间。 安利一个小知识 // // 摘要: // Creates a new System.DateTime object that has the same number of ticks as the // specified System. 阅读全文
posted @ 2018-11-20 11:23 絆τ 阅读(475) 评论(0) 推荐(0) 编辑
2018年11月18日
摘要: string[] arrRate = new string[] { "a", "b", "c", "d" };//A string[] arrTemp = new string[] { "c", "d", "e" };//B string[] arrUpd = arrRate.Intersect(a 阅读全文
posted @ 2018-11-18 16:34 絆τ 阅读(405) 评论(0) 推荐(0) 编辑
2018年11月17日
摘要: public class Animal { public virtual void Eat() { Console.WriteLine("Animal eat"); Console.ReadKey(); } } public class Cat : Animal { public override 阅读全文
posted @ 2018-11-17 14:39 絆τ 阅读(123) 评论(0) 推荐(0) 编辑
2018年8月25日
摘要: var arr = [] var peoples = [ {id:1,name:'wang'}, {id:2,name:'zhang'}, {id:2,name:'zhang'}, ] for(let val of peoples){ arr.push(val.id) } var newArr = 阅读全文
posted @ 2018-08-25 20:38 絆τ 阅读(189) 评论(0) 推荐(0) 编辑
2018年7月17日
摘要: insert into test(name,age) values('xiao','1') SELECT @@IDENTITY test是表名 重点是这句SELECT @@IDENTITY 阅读全文
posted @ 2018-07-17 14:57 絆τ 阅读(3180) 评论(0) 推荐(0) 编辑
2018年5月28日
摘要: SQL Server中,如果目标表存在: 1 insert into 目标表 select * from 原表; SQL Server中,如果目标表不存在: 1 select * into 目标表 from 原表; 阅读全文
posted @ 2018-05-28 08:33 絆τ 阅读(964) 评论(0) 推荐(0) 编辑