随笔分类 - 学习日记
日常学习小demo
摘要://通用RSA加密,可兼容.Net 6.0以下 string CommonRSAEncrypt(string publicKeyBase64, string plaintext) { try { byte[] publicKeyBytes = Convert.FromBase64String(pub
阅读全文
摘要:private static object lockobj = new object(); lock (lockobj) { //逻辑代码 }
阅读全文
摘要:解决思路:将每年的所有节日获取到,然后存入数据库,数据量不多,也就十几天,至于双休日的话,程序判断就好了,有个问题就是调休的没有处理【可以加一个状态字段1表示是休息的,0表示是调休的,然后程序里面自行判断下,当然网上可能也有现成的接口,但是一般都会有调用次数限制,可以分天数,每天调一点存数据库,自行
阅读全文
摘要:webrequest 请求接口,接口提示: 基础连接已经关闭: 无法与远程服务器建立信任关系 在你的请求里面加上这两行(红色标记的),而且两个都是必要的:(别问为啥,我也不知道......)多次尝试出来的结果 /// <summary> /// 底层GET请求 /// </summary> ///
阅读全文
摘要:1.window mysql 下载 MySQL :: Download MySQL Installer 安装教程 (7条消息) 【MySQL篇】01_MySQL 8.0 的下载与安装(详细教程)_mysql安装教程_云破丶日出的博客-CSDN博客 2.navicat15下载 https://wwe.
阅读全文
摘要:参阅:https://gitee.com/jroam/qrcode.js/
阅读全文
摘要:参考网站:https://www.liaoxuefeng.com/wiki/896043488029600 基础概念 1.自定义名字和邮箱号 git config --global user.name “your name” git config --global user.email “your
阅读全文
摘要:1. 安装office包 https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=13255 2.需要在相应的IIS应用程序池启用32位应用程序 3.代码 //前台 <script language="javascript"> $(
阅读全文
摘要:/// <summary> /// AES加密 /// </summary> /// <param name="key"></param> /// <param name="str"></param> /// <returns></returns> public static string AesE
阅读全文
摘要:body {-webkit-filter: grayscale(100%) !important;-moz-filter: grayscale(100%) !important;-ms-filter: grayscale(100%) !important;-o-filter: grayscale(1
阅读全文
摘要:1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=currentTime.Day; 1.5
阅读全文
摘要:using HttpUtil; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Configuration; using System.IO; using System.Linq;
阅读全文
摘要:<table style="width: 100%; margin: 0 auto; border: 1px solid #BBBBBB; border-collapse: collapse" class="tj_table geiveCardTable"> <tr> <td>办理业务类型 </td
阅读全文
摘要:Stopwatch st = new Stopwatch(); st.Start(); for(int i =0; i<100000; i++) { console.writeLine('输出'); } st.Stop(); TimeSpan ts = st.Elapsed; BaseHelper.
阅读全文
摘要:<div class="qb"> <div class="box"> <div class="qtt f_16 fbd">会议室:区政府中一楼会议室</div> <ul class="ul1"> <li> <div class="llt">地板、地毯</div> <div class="lrt">请
阅读全文
摘要:接触了 net core的小伙伴们 已经发现 @html.Action()方法 官方已经不提供支持了,转而使用 ViewComponents替代了,同时也增加了TagHelper。 1.如果想用以前的@Html.Action()方法,那只能手动实现了,记得服务注册!!! 详情转: https://w
阅读全文
摘要:有时候我们调用第三方接口,返回的并不是完整的链接带参数,而我们只需要获取指定的一些参数 例如:code=200&msg=success×tamp=1657539&nonce_str=T8Zhan&data=%7B%22pre_tre_no%22%3A%22OID2022071117311B
阅读全文
摘要:insert delete update select 选择数据库进行操作select top 1 * from smzx2018.dbo.tbuseruse smzx2018;select top 1 * from tbuser 基础操作select COUNT(userid) from smzx
阅读全文
摘要:copy 至 https://blog.csdn.net/yunweifun/article/details/123409692
阅读全文