比较Integer的时候,不要用==。 查看Integer的源码,如下: / Returns an {@code Integer} instance representing the specified {@code int} value. If a new {@code Integer} inst ...
分类:
其他好文 时间:
2019-08-28 01:24:24
阅读次数:
110
什么是方法重载? 一般情况下,在调用方法时,必须匹配方法的签名。这表明,需要有不同的方法来操作不同类型的变量。 方法重载允许创建多个同名方法,每个函数可使用不同的参数类型。(即:方法名相同,参数个数或类型不同) 方法重载的栗子: ...
C# Base64编码class Base64Helper { /// <summary> /// Base64加密,采用utf8编码方式加密 /// </summary> /// <param name="source">待加密的明文</param> /// <returns>加密后的字符串</r ...
分类:
其他好文 时间:
2019-08-21 13:40:28
阅读次数:
100
在做一些订单金额、合同金额转换的时候,经常会遇到数字转成中文的情况,所以整理了一个数字转中文的函数; ...
分类:
数据库 时间:
2019-08-19 13:12:23
阅读次数:
110
ZXing.NET用来生成和解释 (条码、二维码) 添加引用:zxing.dll、zxing.presentation.dll 1 生成 (条码、二维码)主要用到 BarcodeWriter、BarcodeFormat、EncodingOptions、BitmapRenderer 这几个类。 2 解 ...
分类:
Web程序 时间:
2019-08-17 13:05:16
阅读次数:
134
CREATE FUNCTION reorder_priority() RETURNS TRIGGER AS $$ BEGIN CASE TG_OP WHEN 'UPDATE' THEN UPDATE link SET priority = priority + 1 WHERE link.priori ...
分类:
数据库 时间:
2019-08-17 12:34:04
阅读次数:
86
/// <summary> /// 是否是 中文 /// </summary> /// <param name="CString"></param> /// <returns></returns> public bool IsChinaString(string CString) { bool Bo... ...
分类:
其他好文 时间:
2019-08-16 11:51:53
阅读次数:
78
create function AccRepeat(@str varchar(50),@sub varchar(50)) returns int as begin declare @pos int,@n int select @n=0, @pos=charindex(@sub,@str) while... ...
分类:
其他好文 时间:
2019-08-15 09:14:34
阅读次数:
82
方法一:用image对象判断是否为图片 方法二,判断文件头 据说方法二针对常规修改的木马有效,也就是直接修改扩展名的,比如把.asp改成.jpg这种。但是对于那种用工具生成的jpg木马没有效果。推荐大家用第一种好了。 ...
分类:
Web程序 时间:
2019-08-13 15:38:51
阅读次数:
116
1. Are the density graphs shown about the log returns? If so, can you test if it's a normal distribution test or not? You can use the Jacque-Bera test ...
分类:
其他好文 时间:
2019-08-11 20:32:29
阅读次数:
109