摘要: .NET Core编写# 指定基础镜像 FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build # 设置工作目录 WORKDIR /app # 复制项目文件到容器中 COPY ./*.csproj ./ RUN dotnet restore # 复制整个项目到容 阅读全文
posted @ 2023-08-31 11:30 卧虎 阅读(250) 评论(1) 推荐(1) 编辑
摘要: 前言 在做需求过程中我们大概率会遇到在浏览器中下载文件的需求,如果仅仅是这个要求的话很简单,但是平常下载方式都会存在一个问题,就是 pdf 文件会直接在浏览器中打开而不是直接下载。 解决方案 这种需求的解决方式就是将PDF文件的 MIME type 改为 application/octet-stre 阅读全文
posted @ 2021-08-21 10:55 卧虎 阅读(1444) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 调用外部接口 /// </summary> /// <param name="request">消息体</param> /// <returns></returns> public static string CallExternalInterface(strin 阅读全文
posted @ 2021-05-25 11:07 卧虎 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 原因是因为在IE浏览器中对GET请求会在第一次请求后放入缓存中,在第二次请求的时候URL一样的情况下(参数没有变)那么就会直接读取缓存 解决方法: 1.在GET请求的方法参数后面加个时间戳或者随机数(让它每次请求都不一样) 2.GET请求换成POST请求 已解决! 阅读全文
posted @ 2021-01-26 09:53 卧虎 阅读(122) 评论(0) 推荐(0) 编辑
摘要: //新建一个类 public class AppConfigurtaionServices { public static IConfiguration Configuration { get; set; } static AppConfigurtaionServices() { //ReloadO 阅读全文
posted @ 2021-01-04 15:47 卧虎 阅读(907) 评论(0) 推荐(0) 编辑
摘要: using System.Speech.Synthesis;//需要引用的命名空间 string str = "呀呀呀 呀呀呀 我是什么什么的小画家"; SpeechSynthesizer synth = new SpeechSynthesizer(); synth.Speak(str); 阅读全文
posted @ 2020-07-02 19:33 卧虎 阅读(299) 评论(0) 推荐(0) 编辑
摘要: $("#btn_GM").attr("disabled", true)//禁用 $("#btn_GM").attr("disabled", false);//启用购买按钮 阅读全文
posted @ 2020-07-02 19:31 卧虎 阅读(2122) 评论(0) 推荐(0) 编辑
摘要: document.getElementById("hideContent").style.background="#DDDDDD"; 阅读全文
posted @ 2020-07-02 15:10 卧虎 阅读(3498) 评论(0) 推荐(0) 编辑
摘要: //返回顶部 function pageScroll() { //把内容滚动指定的像素数(第一个参数是向右滚动的像素数,第二个参数是向下滚动的像素数) window.scrollBy(0, -100); //延时递归调用,模拟滚动向上效果 scrolldelay = setTimeout('page 阅读全文
posted @ 2020-06-29 14:30 卧虎 阅读(513) 评论(0) 推荐(0) 编辑
摘要: private MailMessage mailMessage; private SmtpClient smtpClient; private string password;//发件人密码 /// <summary> /// 带参数的构造函数,初始化发送邮件的条件 /// </summary> / 阅读全文
posted @ 2020-06-27 19:28 卧虎 阅读(192) 评论(0) 推荐(0) 编辑