08 2021 档案

摘要:后台代码 [HttpPost] public ActionResult UpLoad() { try { //获取前台传过来的文件 var file = Request.Files[0]; //将虚拟路径转换成物理路径 var imgDir = Server.MapPath("/Images/"); 阅读全文
posted @ 2021-08-19 20:21 姚睿的博客 阅读(151) 评论(0) 推荐(0)
摘要:在Visual Studio里使用Vue 在 data(){}函数中 定义两个数组 用来接收数据 在 methods 方法里 //一级下拉数据获取 loadNClass() { axios.get('/default/LoadNClass?node=0') .then(res => { this.s 阅读全文
posted @ 2021-08-19 20:14 姚睿的博客 阅读(398) 评论(0) 推荐(0)
摘要:Repository层 添加需要的类 然后在类里面实例化需要用到的上下文 接下来写方法 1 public int AddUserInfo(UserInfo userInfo) { 2 try 3 { 5 //SQL 6 //return db.Database.ExecuteSqlCommand($ 阅读全文
posted @ 2021-08-18 20:56 姚睿的博客 阅读(145) 评论(0) 推荐(0)