精进之路  
07 2020 档案
  • Angular Material 控件学习
    摘要:Angular Material 控件学习 下拉列表用 mat-select 和 mat-option 实现 通过对 input 控件的属性,可以将其指向一个辅助输入控件,以实现额外的行为。比如,用 mat-datepicker 实现日期输入;用 mat-autocomplete 实现自动完成 ma 阅读全文
    posted @ 2020-07-26 01:25 Optimus_Prime 阅读(258) 评论(0) 推荐(0)
  • Angular 学习小记
    摘要:关于数据或事件绑定的一些语法 () 是事件绑定;[] 是属性绑定;[()] 是双向绑定,除了属性绑定外,默认会绑定到 xxxChange 事件;[(ngModel)] 也是双向绑定。 @Input() 用于声明组件接受的属性,类似于 React 的 props. @Output 声明组件对外暴露的事 阅读全文
    posted @ 2020-07-20 00:23 Optimus_Prime 阅读(122) 评论(0) 推荐(0)
  • asp.net core 的验证模型
    摘要:https://www.cnblogs.com/dudu/p/6367303.html ClaimsPrincipal 证件持有人 ClaimsIdentity 证件(驾照、身份证) Claim 证件上的字段 认证成功后,在 HttpContext.User 中存入 ClaimsPrincipal. 阅读全文
    posted @ 2020-07-05 17:18 Optimus_Prime 阅读(195) 评论(0) 推荐(0)
  • asp.net core 中的认证方式(Authentication Scheme)
    摘要:https://docs.microsoft.com/en-us/aspnet/core/security/authorization/limitingidentitybyscheme?view=aspnetcore-3.1 在 SPA 中有时候会同时使用多种认证方式。比如,使用基于 cookie 阅读全文
    posted @ 2020-07-05 03:51 Optimus_Prime 阅读(1983) 评论(1) 推荐(0)
  • asp.net core Role based Authorization
    摘要:https://docs.microsoft.com/en-us/aspnet/core/security/authorization/roles?view=aspnetcore-3.1 允许 xxx 或 yyy 角色访问 [Authorize(Role = "xxx,yyy")] 允许同时具有 x 阅读全文
    posted @ 2020-07-01 01:01 Optimus_Prime 阅读(252) 评论(0) 推荐(0)