刹那的菜鸟

博客园 首页 新随笔 联系 管理

2019年12月23日 #

摘要: //创建配置根对象 var configurationRoot = builder1.Build(); //读取到ioc IOptions<SuperAppsettings> setting 依赖注入 services.Configure<SuperAppsettings>(configuratio 阅读全文
posted @ 2019-12-23 16:17 刹那的菜鸟 阅读(560) 评论(0) 推荐(0) 编辑

摘要: 参考官方:https://docs.autofac.org/en/latest/integration/aspnetcore.html#startup-class 有一些变动,现在暂时还没用net core3 做项目 在Startup类中(在所有版本的ASP.NET Core中基本相同),然后使用C 阅读全文
posted @ 2019-12-23 11:43 刹那的菜鸟 阅读(1663) 评论(1) 推荐(0) 编辑

摘要: 举例:http://localhost:5000/?sss=sdf&fdd=123 1、设置或获取整个 URL 为字符串 window.location.href 值: http://localhost:5000/?sss=sdf&fdd=123 2、设置或获取 URL 的协议部分 window.l 阅读全文
posted @ 2019-12-23 10:40 刹那的菜鸟 阅读(586) 评论(0) 推荐(0) 编辑