js 惰性载入函数( 能力检测 )
今天在做项目时,需要对地址栏参数做处理,于是便作了如下处理javascriptgetUrlParam(){letparams{};consturlwindow.location.href.replace(/\//g,'').replace(/\?/g,'&');url.replace(/?&(^&)
浩浩 浩浩
4年前
Retrofit 支持suspend函数源码分析
Retrofit2.6.0之后支持接口suspend函数配合协程使用,举个例子:ApiServicejavainterfaceLoginApiService:BaseService{@GET("/wxarticle/chapters/json")suspendfungetChapters():BaseResp
Wesley13 Wesley13
3年前
asp.net中自动填充参数的存储过程类(C#)
执行一下这个sql:SELECTB.name,C.nameAStype,B.length,B.isoutparam,B.isnullableFROMsysobjectsASAINNERJOIN";syscolumnsASBONA.idB.idANDA.xtype'P'
Wesley13 Wesley13
3年前
mysql分组统计按照字段排序方法(分组之后保留最新时间、最大id...)
sql示例如下:selectsuccess_time,query_time,order_nofrompro_return_plantwheret.success_timein(SELECTmax(success_time)FROMpro_return_planWHERE11ANDbill_
Stella981 Stella981
3年前
Python接入mysql数据库
方法一:直接在models里连接mysql数据库,用sql语言操作python2的代码:codingutf8importMySQLdbconnMySQLdb.connect(host'loc
Stella981 Stella981
3年前
D3.js area函数
!(http://static.oschina.net/uploads/space/2015/0402/110259_Cfoo_861926.png)var area  d3.svg.area().interpolate("monotone").x(function(d) { return x(d.date); }).y0(260).y1(
Stella981 Stella981
3年前
Mybatis 敏捷开发之快速查看目标执行SQL
配置SpringBoot输出SQL只需要把你的Mapper包名配置成debug即可logging:level:com:pig4cloud:pigx:mapper:debug
Stella981 Stella981
3年前
Linux stat函数和stat命令
stat函数和stat命令linux文件里的【inodeindexnode】解释:要理解inode必须了解磁盘和【目录项】,inode实际是连接【目录项】和磁盘的中间物质。图里的大圈代表硬件的磁盘,里面的小圈代表某个文件存储在磁盘上了。【inodeindexnode】的node(承载node信息的结
Wesley13 Wesley13
3年前
MySQL常用函数,你真得看看!
概念:相当于java中的方法,将一组逻辑语句封装在方法体中,对外暴露方法名隐藏了实现细节提高代码的可重用性使用:select函数名(实参列表)【from表】  【】中内容可省略正文:字符函数:length:获取字节个数(utf8一个汉字为3个字节,gb
Stella981 Stella981
3年前
Python对象相关内置函数
针对一个对象,通过以下几个函数,可以获取到该对象的一些信息。1、type(),返回某个值的类型type(123)<class'int'type('str')<class'str'type(None)<type(None)'NoneType'使用就是括号