上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: @{ ViewBag.Title = "Home Page"; Layout = null; } <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <!-- import CSS --> <link rel="stylesheet" href= 阅读全文
posted @ 2020-07-01 14:49 Aaron_Net 阅读(162) 评论(0) 推荐(0) 编辑
摘要: :formatter="Time" Time(value) { var dateee = new Date(value).toJSON(); var date = new Date(+new Date(dateee) + 8 * 3600 * 1000).toISOString().replace( 阅读全文
posted @ 2020-06-30 14:39 Aaron_Net 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1、引入最新版的swaager Install-Package Swashbuckle.AspNetCore -Version 5.0.0-rc4 2、在startup类中的ConfigureServices 方法中的服务集合中添加如下代码 // Register the Swagger gener 阅读全文
posted @ 2020-06-29 16:34 Aaron_Net 阅读(181) 评论(0) 推荐(0) 编辑
摘要: overflow: hidden; 溢出时使用 并排 .listmain { background: center; display: flex; } .listtable { background: center; flex: 5; width: 100%; } <div class="listm 阅读全文
posted @ 2020-06-28 18:27 Aaron_Net 阅读(72) 评论(0) 推荐(0) 编辑
摘要: Git安装完成后,需要手动配置ssh密钥 配置github的ssh密钥: 目录需要是 C:\Users\Administrator:\> (1)打开Git Bash查看电脑上是否已经存在SSH密钥: cd .ssh 若如上图显示无法找到该文件夹则要创建新的ssh key;(2)创建新的ssh key 阅读全文
posted @ 2020-06-23 10:32 Aaron_Net 阅读(292) 评论(0) 推荐(0) 编辑
摘要: services.AddMemoryCache(); public class user { public string Name { get; set; } public string password { get; set; } } public void Create(string name) 阅读全文
posted @ 2020-06-22 15:19 Aaron_Net 阅读(555) 评论(0) 推荐(0) 编辑
摘要: 下面是一个简单的解决方案,如果不想定义一个操作过滤器 使用jQuery的客户端代码: $.ajax("http://www.myserver.com/Home/JsonpCall", { dataType: "jsonp" }).done(function (result) {}); MVC控制器的 阅读全文
posted @ 2020-06-20 09:42 Aaron_Net 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 1、验证码帮助类 namespace IdeaCore.Services.Common { public class ValidateCodeService : IValidateCodeService { private const string ValidateCodeKey = "Valida 阅读全文
posted @ 2020-06-18 17:28 Aaron_Net 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 1. ConfigureServices services.AddControllersWithViews(config=>config.Filters.Add(typeof(ModelValidateActionFilterAttribute))); 2. ModelValidateActionF 阅读全文
posted @ 2020-06-18 16:09 Aaron_Net 阅读(359) 评论(0) 推荐(0) 编辑
摘要: net core 3.1 Authorize 1 //配置authorrize services.AddAuthentication(b => { b.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationSch 阅读全文
posted @ 2020-06-18 11:51 Aaron_Net 阅读(930) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页