会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
江小白ra
博客园
首页
新随笔
联系
订阅
管理
2022年1月17日
BarcodeLib.Barcode.dll+NPOI 下载和生成条形码导出excel
摘要: 前端列表展示数据,显示图片: private void GetList() { int currPage = Utils.ReqIntParams("page", 1); int pageSize = Utils.ReqIntParams("rows", 30); int totalCount =
阅读全文
posted @ 2022-01-17 10:10 江小白ra
阅读(339)
评论(0)
推荐(0)
2020年5月9日
html ajax访问webapi 跨域
摘要: 一、为什么会出现跨域问题 出于浏览器的同源策略限制。同源策略(Sameoriginpolicy)是一种约定,它是浏览器最核心也最基本的安全功能,如果缺少了同源策略,则浏览器的正常功能可能都会受到影响。可以说Web是构建在同源策略基础之上的,浏览器只是针对同源策略的一种实现。同源策略会阻止一个域的ja
阅读全文
posted @ 2020-05-09 16:24 江小白ra
阅读(629)
评论(0)
推荐(0)
2020年4月24日
Http (GET/POST)请求
摘要: 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
阅读(316)
评论(0)
推荐(0)
2020年4月20日
Word文档下载 流
摘要: 后台 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
阅读(236)
评论(0)
推荐(0)
2020年1月13日
钉钉H5w微应用鉴权
摘要: 1 ///// <summary> 2 ///// 登录获取签名 3 ///// </summary> 4 ///// <param name = "url" > 获取的url </ param > 5 ///// < returns > 成功时,返回签名信息</returns> //引用syste
阅读全文
posted @ 2020-01-13 16:38 江小白ra
阅读(1015)
评论(0)
推荐(1)
2020年1月7日
上传图片
摘要: 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
阅读(250)
评论(0)
推荐(0)
2019年11月22日
c#循环两个日期之前的时间
摘要: 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
阅读(2144)
评论(0)
推荐(2)
2019年11月15日
钉钉审批流回调
摘要: 先注册回调接口(只需要调用注册回调接口一次), 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
阅读(7564)
评论(9)
推荐(2)
2019年11月12日
钉钉调用审批流
摘要: 进入钉钉 “钉钉开放平台” 下载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
阅读(3416)
评论(1)
推荐(0)
2019年9月11日
NPOI复制模板另存为新的excel
摘要: 使用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
阅读(2195)
评论(0)
推荐(1)
公告