2022年11月16日
摘要: 1.后端Datatable转EXCEL代码如下: public byte[] DataTableToExcel(DataTable data) { ISheet sheet = null; IWorkbook workbook = new XSSFWorkbook(); try { if (work 阅读全文
posted @ 2022-11-16 15:17 Macaroni 阅读(1343) 评论(0) 推荐(0)
  2022年8月9日
摘要: function batchDeleteClick() { var table = layui.table; var checkStatus = table.checkStatus($("table")[0].id); console.log(checkStatus); var ids = new 阅读全文
posted @ 2022-08-09 14:25 Macaroni 阅读(1869) 评论(0) 推荐(0)
  2022年8月1日
摘要: IIS上绑定证书时发现提示中间证书缺失,实际接口是可正常访问的。 但是通过小程序真机调试或上传的版本测试时会出现接口访问报错 request:fail -2:net::ERR_FAILED 解决办法: 打开https://myssl.com/chain_download.html 通过域名生成RSA 阅读全文
posted @ 2022-08-01 10:22 Macaroni 阅读(1508) 评论(0) 推荐(1)
  2022年7月15日
摘要: 1.自动消失提示窗 layer.msg('xxx', { icon: 1, time: 2000 //2秒关闭(如果不配置,默认是3秒) }, function () { ... }); 2.普通提示框 layer.alert('已关闭件', { icon: 5, title: "提示" });// 阅读全文
posted @ 2022-07-15 08:52 Macaroni 阅读(1928) 评论(0) 推荐(0)
  2022年6月20日
摘要: uni-app在多层箭头函数中使用this,会出现赋值失效等问题 输出this会发现是undifined 当我们使用箭头函数的时候,箭头函数会默认帮我们绑定外层 this 的值 出现多层,就无法绑定最外层的this 所以我们需要在最外层定义 const _this = this; 这样就可以对最外层 阅读全文
posted @ 2022-06-20 10:39 Macaroni 阅读(687) 评论(0) 推荐(0)
  2022年6月15日
摘要: 使用XMLHttpRequest写法,HBuilderX上正常编译,到微信开发者平台编译就会报下面的报错 使用axios时,在微信开发者平台编译报的错更是难以理解 解决办法:使用wx.request完美解决 wx.request({ url: 'url', method:'GET', success 阅读全文
posted @ 2022-06-15 09:44 Macaroni 阅读(1201) 评论(0) 推荐(0)
  2022年4月19日
摘要: 在远程桌面按Ctrl+Alt+End,与Ctrl+Alt+Del效果一致。就可以修改密码了。 阅读全文
posted @ 2022-04-19 15:48 Macaroni 阅读(445) 评论(0) 推荐(1)