摘要: 前端列表展示数据,显示图片: private void GetList() { int currPage = Utils.ReqIntParams("page", 1); int pageSize = Utils.ReqIntParams("rows", 30); int totalCount = 阅读全文
posted @ 2022-01-17 10:10 江小白ra 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 一、为什么会出现跨域问题 出于浏览器的同源策略限制。同源策略(Sameoriginpolicy)是一种约定,它是浏览器最核心也最基本的安全功能,如果缺少了同源策略,则浏览器的正常功能可能都会受到影响。可以说Web是构建在同源策略基础之上的,浏览器只是针对同源策略的一种实现。同源策略会阻止一个域的ja 阅读全文
posted @ 2020-05-09 16:24 江小白ra 阅读(571) 评论(0) 推荐(0) 编辑
摘要: 1 /// <summary> 2 /// Http (GET/POST) 3 /// </summary> 4 /// <param name="url">请求URL</param> 5 /// <param name="parameters">请求参数</param> 6 /// <param 阅读全文
posted @ 2020-04-24 11:37 江小白ra 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 后台 1 public void DownFiletemple(string filepath) 2 { 3 FileInfo fileInfo = new FileInfo(filepath); 4 Response.Clear(); 5 Response.ClearContent(); 6 Re 阅读全文
posted @ 2020-04-20 18:36 江小白ra 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 1 ///// <summary> 2 ///// 登录获取签名 3 ///// </summary> 4 ///// <param name = "url" > 获取的url </ param > 5 ///// < returns > 成功时,返回签名信息</returns> //引用syste 阅读全文
posted @ 2020-01-13 16:38 江小白ra 阅读(977) 评论(0) 推荐(1) 编辑
摘要: view 引用js ajaxfileupload.js 1 <style type="text/css"> 2 .float { 3 float: left; 4 width: 200; 5 height: 200; 6 overflow: hidden; 7 border: 1px solid # 阅读全文
posted @ 2020-01-07 10:20 江小白ra 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1 for (DateTime dt = startDate; dt < endDate; dt = dt.AddMonths(1)) 2 { 3 var year = date.Year; 4 var month= date.Month; 5 } 时间戳 public static class D 阅读全文
posted @ 2019-11-22 11:44 江小白ra 阅读(2108) 评论(0) 推荐(2) 编辑
摘要: 先注册回调接口(只需要调用注册回调接口一次), using Newtonsoft.Json; 1 public void DingdingTest() 2 { 3 string accessToken = dingApp.getAccessToken(); 4 5 string code = "ji 阅读全文
posted @ 2019-11-15 09:23 江小白ra 阅读(7321) 评论(9) 推荐(2) 编辑
摘要: 进入钉钉 “钉钉开放平台” 下载SDK https://ding-doc.dingtalk.com/doc#/faquestions/vzbp02 1 public ActionResult Dingding(string sheetno, long dept, string plant, stri 阅读全文
posted @ 2019-11-12 16:23 江小白ra 阅读(3264) 评论(1) 推荐(0) 编辑
摘要: 使用NPOI组件 //var table2 = doc.tables[0]; ///直接使用tables无法获取嵌套在里面的table,只能获取最外层的table//var table3 = table2.GetRow(2).GetCell(0).Tables[0]; //获取嵌套在表格里面的tab 阅读全文
posted @ 2019-09-11 14:35 江小白ra 阅读(2028) 评论(0) 推荐(1) 编辑