1.当static关键字修饰局部变量时,只会初始化一次且在程序中只有一份内存; @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor ...
分类:
其他好文 时间:
2020-03-31 22:32:59
阅读次数:
80
熟悉的东西,长时间不用很快也就忘了,挺多还蛮可惜的。。 deferred之前用过不少次,这次心血来潮总结一下,主要还是参考阮老师的这篇文章。 deferred对象被jquery推出,作为操作回调的一种方式。 譬如ajax请求,如果想在请求成功后执行某些操作,比较常见的方法是在配置中定义好 回调函数。 ...
分类:
Web程序 时间:
2020-03-31 20:54:35
阅读次数:
71
对于html5虽然用得多,但还是有一些知识点比较混乱,记得不清,所以想专门整理一下 HTML5浏览器支持 最新版本的Safari、Chrome、Firefox、Opera支持某些HTML5特性,IE9将支持某些HTML5特性 此外,所有浏览器,包括旧的新的,对无法识别的元素会作为内联元素自动处理。 ...
分类:
Web程序 时间:
2020-03-31 14:44:38
阅读次数:
77
LocalSystem Account The LocalSystem account is a predefined local account used by the service control manager. This account is not recognized by the s ...
分类:
其他好文 时间:
2020-03-31 10:37:19
阅读次数:
88
Reference "Go maps in action" "Comparison operators" Declaration and initialization A Go map type looks like this: where KeyType may be any type that ...
分类:
其他好文 时间:
2020-03-30 16:07:43
阅读次数:
78
错误信息:Verify the connector's configuration, identify and stop any process that's listening on port xxxx, or configure this application to listen on ano... ...
分类:
其他好文 时间:
2020-03-30 14:35:32
阅读次数:
311
题目描述 Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. '.' Matches any single character ...
分类:
其他好文 时间:
2020-03-30 12:48:40
阅读次数:
69
1. devops-持续集成管理之SonarQube 1) 代码质量七宗罪 编码规范:是否遵守了编码规范,遵循了最佳实践。 潜在的BUG:可能在最坏情况下出现问题的代码,以及存在安全漏洞的代码。 文档和注释:过少(缺少必要信息)、过多(没有信息量)、过时的文档或注释。 重复代码:违反了DontRep ...
分类:
其他好文 时间:
2020-03-30 11:27:47
阅读次数:
81
在项目开发中经常会遇到这样的场景:查询一个复杂实体,其中一部分字段数据从数据库中直接查出,另一部字段数据从缓存中取出。这里通过AutoMapper和特性,提供一种优雅的编码方法。 这种方法的大概思路是:在成员的特性中配置好[缓存字典的key]、[与缓存字典关联的外键名称]和[缓存字典里目标字段的名称 ...
分类:
移动开发 时间:
2020-03-30 09:35:38
阅读次数:
81
Ocelot作为网关,功能有很多:负载均衡,限流,熔断,缓存.... 而作为使用者的我们,只需要在configuration.json中配置即可,配置文件在官网上都有,站在巨人的肩膀上是真滴舒服。 下面简单记录几个功能的使用 Step1:Nuget上下载Ocelot的包 Step2:添加config ...
分类:
其他好文 时间:
2020-03-30 00:15:25
阅读次数:
74