// This method returns the color model of an image public static ColorModel getColorModel(Image image) { // If buffered image, the color model is read... ...
分类:
其他好文 时间:
2018-09-02 23:41:25
阅读次数:
167
初学mysql时,可能不太明白delimiter的真正用途,delimiter在mysql很多地方出现,比如存储过程、触发器、函数等。 学过oracle的人,再来学mysql就会感到很奇怪,百思不得其解。 其实就是告诉mysql解释器,该段命令是否已经结束了,mysql是否可以执行了。默认情况下,d ...
分类:
数据库 时间:
2018-09-02 01:59:34
阅读次数:
225
将图片加压到zip中,再使用JSZip和Egret将图片显示出来.核心代码:/***将ArrayBuffer转化为Base64*@param{ArrayBuffer}$buffer*@param{smallLib.TYPE_IMAGE_FORMAT2ZIP}$img_ty(默认:TYPE_IMAGE_FORMAT2ZIP=TYPE_IMAGE_FORMAT2ZIP._PNG)*@returns{s
分类:
Web程序 时间:
2018-08-28 20:12:12
阅读次数:
784
/// <summary> /// list转datatable /// </summary> /// <typeparam name="T"></typeparam> /// <param name="collection"></param> /// <returns></returns> pub ...
分类:
其他好文 时间:
2018-08-28 14:15:03
阅读次数:
164
js的base64编码和解码 base64 转 blob 对象,文件上传 ...
分类:
Web程序 时间:
2018-08-27 23:20:29
阅读次数:
689
public class MapBuilder { /** * Creates an instance of {@code HashMap} */ public static <K, V> HashMap<K, V> newHashMap() { return new HashMap<>(); } ...
分类:
其他好文 时间:
2018-08-27 21:47:43
阅读次数:
557
$group 下 $sum 函数 Returns a sum of numerical values. Ignores non numeric values 只能对数字求和,非数字没有作用 查询一段时间内的内容,比较的其实是时间的字符串 db.CollectionAAA.find({ "Create ...
分类:
数据库 时间:
2018-08-26 16:51:00
阅读次数:
178
# 随机产生字符串 #rand_string(n INT) rand_string 是函数名 (n INT) //该函数接收一个整数create function rand_string(n INT) returns varchar(255) #该函数会返回一个字符串begin #chars_str ...
分类:
数据库 时间:
2018-08-26 12:32:48
阅读次数:
488
/// <summary> /// 删除 /// </summary> /// <param name="id"></param> /// <returns></returns> public int DeleteId(int id) { int i = bll.Delete(id); if (i ...
分类:
其他好文 时间:
2018-08-23 10:10:52
阅读次数:
182
using System; using System.IO; using System.IO.Compression; using System.Text; public class gzip { /// /// 字节数组压缩 /// /// /// public static byte[] Com... ...
分类:
其他好文 时间:
2018-08-22 20:42:29
阅读次数:
172