09 2021 档案
摘要:一.nlog是日志文件 使用的步骤 第一步:下载nlog 第二步:using引用 Nlog 第三步:private Logger logger=LogManager.GetCurrentClassLogger(); 第四不:输入logger.Error(错误消息)或者logger.Info("")
阅读全文
摘要:1.添加 public int Post(Student student) { StudentDbContext context = new StudentDbContext(); student.CreateTime = student.CreateTime.AddHours(8); contex
阅读全文
摘要:1.上传图片的后台标准写法代码 第一步获取文件 var newName=HttpContext.CurrentRequest.Files[0]; 第二部新名称 var newFileName = Guid.NewGuid().ToString(); 第三部获取扩展名 var ext = Path.G
阅读全文
摘要:一、创建code项目 1.运行vue ui命令 2.点击创建项目,然后点击那个毛笔写入地址 3.在此新建项目,再把初始化git仓库给关了 4.在插件里下载router-view 二、添加和注册写到一块了 <template> <div> <el-form :model="ruleForm" stat
阅读全文
浙公网安备 33010602011771号