vue table formrt datetime languer
摘要::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
阅读(132)
推荐(0) 编辑
net core 3.1 swagger
摘要: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
阅读(184)
推荐(0) 编辑
css
摘要: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
阅读(73)
推荐(0) 编辑
配置Github秘钥
摘要: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
阅读(300)
推荐(0) 编辑
NET CORE 3.1 IMemoryCache
摘要: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
阅读(562)
推荐(0) 编辑
net core 3.1 MVC如何返回JSONP
摘要:下面是一个简单的解决方案,如果不想定义一个操作过滤器 使用jQuery的客户端代码: $.ajax("http://www.myserver.com/Home/JsonpCall", { dataType: "jsonp" }).done(function (result) {}); MVC控制器的
阅读全文
posted @
2020-06-20 09:42
Aaron_Net
阅读(487)
推荐(0) 编辑
NET Core 3.1 Session,validation code
摘要:1、验证码帮助类 namespace IdeaCore.Services.Common { public class ValidateCodeService : IValidateCodeService { private const string ValidateCodeKey = "Valida
阅读全文
posted @
2020-06-18 17:28
Aaron_Net
阅读(536)
推荐(0) 编辑
Asp.NetCore3.1 Model validation
摘要:1. ConfigureServices services.AddControllersWithViews(config=>config.Filters.Add(typeof(ModelValidateActionFilterAttribute))); 2. ModelValidateActionF
阅读全文
posted @
2020-06-18 16:09
Aaron_Net
阅读(366)
推荐(0) 编辑
net core 3.1 Authorize
摘要:net core 3.1 Authorize 1 //配置authorrize services.AddAuthentication(b => { b.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationSch
阅读全文
posted @
2020-06-18 11:51
Aaron_Net
阅读(934)
推荐(0) 编辑
net core 3.1 logging 生成文件
摘要:_logger.LogInformation("你访问了首页"); _logger.LogWarning("警告信息"); _logger.LogError("错误信息"); 使用DI 直接可以使用对象。 日志级别:Trace -》Debug-》 Information -》Warning-》 Er
阅读全文
posted @
2020-06-16 14:19
Aaron_Net
阅读(624)
推荐(0) 编辑
net core 3.1 依赖注入
摘要:Netcore内置IOC容器,services.AddSingleton<>, 就是往内置IOC容器里配置一个单例,将接口跟实现映射在一起, 以后每次使用构造函数注入这个IProductRepository接口,都会获得这个单例对象! 不需要new ProductRepository() DI --
阅读全文
posted @
2020-06-16 11:29
Aaron_Net
阅读(1037)
推荐(1) 编辑
vue temeplete standard
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv
阅读全文
posted @
2020-06-12 16:18
Aaron_Net
阅读(117)
推荐(0) 编辑
net core 3.1 Global
摘要:NET CORE 3.1多语言 控制器多语言ConfigureServices 1 services.AddLocalization(o => { o.ResourcesPath = "Resources"; }); services.AddMvc(); Configure 2 IList<Cult
阅读全文
posted @
2020-06-05 20:30
Aaron_Net
阅读(221)
推荐(0) 编辑