简介:什么是BFC? BFC(Block Formatting Context)的英文缩写简称,block可以理解为一个简单的盒模型, Formatting Context则为block的上下文渲染环境。其作用是使内部元素的布局不受外部元素影响。 BFC的触发条件: 根元素,也就是html根标签; ...
分类:
其他好文 时间:
2020-05-19 14:13:11
阅读次数:
109
Optimally Configuring Entity Framework Core Lets talk about configuring your Entity Framework Core DbContext for a moment. There are several options y ...
分类:
其他好文 时间:
2020-05-19 12:52:31
阅读次数:
104
beego 限速 路由之前调用 具体实现 func rateLimit(r rateLimiter, ctx context.Context) { var ( limiterCtx limiter.Context ip net.IP err error req = ctx.Request ) if ...
分类:
其他好文 时间:
2020-05-19 10:53:40
阅读次数:
79
项目启动是报错: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.beans.factory.Be ...
分类:
移动开发 时间:
2020-05-19 10:52:54
阅读次数:
63
ngx_http_index_module 描述 找默认页面 语法 location / { index index.$geo.html index.html; }#Syntax: index file ...; #Default: index index.html;#Context: http, ...
分类:
其他好文 时间:
2020-05-19 00:25:10
阅读次数:
57
urls 中 进行注册 url(r'grades',views.grades) views 中编写函数 def grades(request): grades_list = Grade.objects.all() # 使用 locals 获取本地变量 return render(request,'g ...
分类:
其他好文 时间:
2020-05-18 12:47:22
阅读次数:
63
源码96-280行 前言 上一篇说到了jQuery的extend方法,它是用来给jQuery函数扩展方法或者给jQuery的原型上加方法。 其实上,jQuery的原型上还是有一些属性和方法的。其中就有我们熟悉的init方法。 当我们调用 $("li") 时,new的便是jQuery.prototyp ...
分类:
Web程序 时间:
2020-05-18 00:30:52
阅读次数:
59
from selenium.webdriver import ActionChains 1、鼠标点击 click:鼠标左击double_click:鼠标双击context_click:鼠标右击 btn = driver.find_element_by_id('su') # 第一步:创建一个鼠标操作的 ...
分类:
其他好文 时间:
2020-05-17 19:25:11
阅读次数:
243
1.nuget: 2、DbContext中加入一下语句: //输出到debug输出 public static readonly LoggerFactory LoggerFactory = new LoggerFactory(new[] { new DebugLoggerProvider() }); ...
分类:
数据库 时间:
2020-05-17 16:05:56
阅读次数:
423
基本介绍 策略模式(Strategy Pattern):定义一系列算法,将每一个算法封装起来,并让它们可以相互替换。策略模式让算法独立于使用它的客户而变化,是一种对象行为型模式。 模式结构 Context(环境角色): 持有抽象策略角色的引用 Strategy(抽象策略角色): 给出所有具体策略类所 ...
分类:
其他好文 时间:
2020-05-16 23:31:52
阅读次数:
91