摘要: 发布时新加的node_modules 总是不会伴随着其他文件一起发布到文件夹里面。一个一个添加选项太麻烦了。百度查询后发现可以通过修改csproject 把node_modules //添加节点即可 <ItemGroup> <Content Include="wwwroot\assets\node_ 阅读全文
posted @ 2024-06-30 17:03 我脑壳疼胸口闷 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1.先下载了.net 8sdk包,sdk包自带运行时。2.通过文件发布api到iis3.程序池改为无托管代码 4.点击运行出现500.195.点击模块发现core的api无法展示模块列表,framework可以展示 6.下载dotnet-hosting-2.2.5-win 问题解决链接:https: 阅读全文
posted @ 2024-05-27 17:18 我脑壳疼胸口闷 阅读(74) 评论(0) 推荐(0) 编辑
摘要: let screenLog = document.querySelector(".geetest_item_img");document.addEventListener("mousemove", logKey);function logKey(e) { console.log ( ` 屏幕坐标 X 阅读全文
posted @ 2024-05-20 15:16 我脑壳疼胸口闷 阅读(9) 评论(0) 推荐(0) 编辑
摘要: let target = document.querySelector(".geetest_item_img");let eventObj = document.createEvent('MouseEvents');//初始化鼠标点击事件 https://developer.mozilla.org/ 阅读全文
posted @ 2024-05-20 15:15 我脑壳疼胸口闷 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 今天遇到个麻烦事,部署服务一直报1053错误,但是直接运行exe文件不会报错 最后通过github了解了,我有读取根目录的配置文件,服务的根目录文件是读取的\system32,但我的配置文件需要读取exe所在的根目录,通过修改读取路径解决bug。 附上代码图片: Path.GetDirectoryN 阅读全文
posted @ 2021-05-27 11:41 我脑壳疼胸口闷 阅读(341) 评论(0) 推荐(0) 编辑
摘要: //使用场景,当需要多个ajax进行异步提交,统一返回结果时使用 $.when.apply($,ajaxList[]).then(function(){ //结果 var result=arguments; //需注意 arguments为 Object类型,当2个以上的ajax返回结果时,argu 阅读全文
posted @ 2020-09-08 17:40 我脑壳疼胸口闷 阅读(447) 评论(0) 推荐(0) 编辑
摘要: using DocumentFormat.OpenXml; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Spreadsheet; using System; using System.Collections 阅读全文
posted @ 2020-05-22 10:13 我脑壳疼胸口闷 阅读(1025) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 根据文件虚拟路径获取内存流 /// </summary> /// <param name="url">http路径</param> /// <returns></returns> public static Stream GetUrlStream(string u 阅读全文
posted @ 2020-04-21 15:47 我脑壳疼胸口闷 阅读(628) 评论(0) 推荐(0) 编辑
摘要: System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch();watch.Start();//开始计时 for(int i=0,i<=50,i++){ Console.WriteLine($"第{i}遍打印"); } 阅读全文
posted @ 2019-09-20 17:10 我脑壳疼胸口闷 阅读(95) 评论(0) 推荐(0) 编辑
摘要: public static void mian(string[] args){ int threadNum=10; ManualResetEvent[] _ManualEvents = new ManualResetEvent[threadNum];//控制信号 for (int i = 0; i 阅读全文
posted @ 2019-09-20 17:08 我脑壳疼胸口闷 阅读(4249) 评论(0) 推荐(0) 编辑