摘要: string idcard = this.labIdcard.Text.ToString(); string url = ConfigurationManager.AppSettings["apiIp"].ToString(); string action = "/api/action?" + id 阅读全文
posted @ 2021-04-26 15:21 栖白 阅读(160) 评论(0) 推荐(0) 编辑
摘要: i++ 是先用再加,++i 是先加再用。 1 int i = 0; 2 int y = 1; 3 y = i++; 4 Console.WriteLine("y的值为:{0}", y.ToString()) Console.WriteLine("i的值为:{0}", i.ToString()); 5 阅读全文
posted @ 2021-01-22 15:13 栖白 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 1 //当前时间戳转换时间(年月日时分秒) 2 function computingTime() { 3 var now = new Date(); 4 var year = now.getFullYear(); 5 var month = now.getMonth(); 6 var date = 阅读全文
posted @ 2021-01-22 14:41 栖白 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 在哪看到的忘了..记起来再补链接 面向过程 面向过程就是分析出解决问题所需要的步骤,然后用函数把这些步骤一步一步实现,使用的时候一个一个依次调用就可以了。 面向对象 面向对象是把构成问题事务分解成各个对象,建立对象的目的不是为了完成一个步骤,而是为了描叙某个事物在整个解决问题的步骤中的行为。 例如五 阅读全文
posted @ 2021-01-22 14:33 栖白 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 1 public JsonResult AddDisk() 2 { 3 var data = 0; 4 string uid = Request.Cookies["UserID"].Value; 5 Login_Users userModel = userBll.getModel(Convert.T 阅读全文
posted @ 2021-01-22 14:17 栖白 阅读(54) 评论(0) 推荐(0) 编辑
摘要: WinService服务教程: https://www.cnblogs.com/cncc/p/7170951.html Scoket代码: 1 //服务地址 2 public static string ipAddress = ConfigurationManager.AppSettings["ip 阅读全文
posted @ 2021-01-22 13:58 栖白 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 1 private AccessToken GetAccessToken(string strUrl) { 2 //令牌类 可换成请求的实体类 3 AccessToken token = new AccessToken(); 4 //try { 5 string szdw = System.Web. 阅读全文
posted @ 2021-01-22 11:17 栖白 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 使用Linq情况:代码发布前可以获取数据,发布以后当查询语句包含中文字段时,项目不报错,查询无结果时处理方法 在webconfig配置数据库连接时添加 Charset=utf8; 使用SQL语句情况: 阅读全文
posted @ 2020-09-12 10:34 栖白 阅读(146) 评论(0) 推荐(0) 编辑
摘要: NPOI导入 前台: 1 @using (Html.BeginForm("ImportExcel", "Admin", FormMethod.Post, new { enctype = "multipart/form-data" })) 2 { 3 <input type="submit" valu 阅读全文
posted @ 2020-07-01 15:45 栖白 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 后台导出 控制器: 1 public void Exportexcel() 2 { 3 List<Questionnaire> paperList = nairebll.SearchQuestionnaire(); 4 nairebll.ExportResult(paperList, "../Cou 阅读全文
posted @ 2020-07-01 15:41 栖白 阅读(2) 评论(0) 推荐(0) 编辑