05 2021 档案

摘要:1 接收表单参数 (1)后台代码 [HttpPost] public IActionResult FormParas([FromForm]string para1, [FromForm] string para2) { return Json(new { code = 0, msg = $"接收到的 阅读全文
posted @ 2021-05-30 10:33 温故纳新 阅读(1375) 评论(0) 推荐(0) 编辑
摘要:function ValidatePhone(val){ var isPhone = /^1[34578]\d{9}$/;//手机号码 var isMob= /^0?1[3|4|5|8][0-9]\d{8}$/;// 座机格式 区号之后用'-'隔开 if(isMob.test(val)||isPho 阅读全文
posted @ 2021-05-24 17:02 温故纳新 阅读(343) 评论(0) 推荐(0) 编辑
摘要:-- 字符串替换函数 replaceselect replace('12x*3456x*9','x*','88'); -- 将 12x*3456x*9 中的 x* 替换为 88 -- 字符串截取函数 left 和 rightselect left('123456',2); -- 从左边开始取 2 个 阅读全文
posted @ 2021-05-21 10:08 温故纳新 阅读(83) 评论(0) 推荐(0) 编辑
摘要:命令格式 git push origin 分支名 --force 实例:使用本地 master 分支覆盖远程分支(即使本地分支处于v1版本,远程分支处于比v1更新的版本) git push origin master --force 阅读全文
posted @ 2021-05-20 21:16 温故纳新 阅读(1364) 评论(0) 推荐(0) 编辑
摘要:using DailyCoding.Attributes; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DailyCoding.Code { [Clas 阅读全文
posted @ 2021-05-15 16:40 温故纳新 阅读(709) 评论(0) 推荐(0) 编辑
摘要:// Task 集合 var taskList = new List<Task>(); // 待分页的List集合 var pageList = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; // 每页数量 var pageSize = 3; // 阅读全文
posted @ 2021-05-15 15:52 温故纳新 阅读(1157) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示