摘要: 1 jQuery.extend({ 2 /** 3 * Returns get parameters. 返回获取参数。 4 * 5 * If the desired param does not exist, null will be returned 如果所需的参数不存在,将会返回null 6 * 7 * @例子 value = $.getURLParam("paramName... 阅读全文
posted @ 2017-08-08 15:06 26个字符的地狱 阅读(1167) 评论(0) 推荐(0) 编辑
摘要: 1 _uri_api = function(url){ 2 return 'http://localhost/msquare/' + url; 3 // return 'http://test2.msqsoft.net:8080/msquare/' + url; 4 } 5 6 function p 阅读全文
posted @ 2017-08-08 15:04 26个字符的地狱 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 时间戳查询当天范围的数据 date(FROM_UNIXTIME(createAt, '%Y-%m-%d %H:%i:%s')) = CURDATE() 例: SELECT * FROM q_company WHERE unitCode='FS001' AND windowId='31697c3384 阅读全文
posted @ 2017-07-21 16:34 26个字符的地狱 阅读(789) 评论(0) 推荐(0) 编辑
摘要: 1 public static void main(String[] args) throws ParseException { 2 // 方法一 3 // Format f = new SimpleDateFormat("yyyy-MM-dd"); 4 // 5 // Date today = new Date(); 6 /... 阅读全文
posted @ 2017-06-22 18:13 26个字符的地狱 阅读(2435) 评论(0) 推荐(0) 编辑
摘要: 1:先建需要排序的属性Model 2:建立排序 Util 定义排序方式 需实现 Comparator 3 : 测试 阅读全文
posted @ 2017-06-15 14:44 26个字符的地狱 阅读(7011) 评论(0) 推荐(0) 编辑
摘要: 1 package org.properties.util; 2 3 import java.io.FileInputStream; 4 import java.io.FileOutputStream; 5 import java.io.IOException; 6 import java.io.InputStream; 7 import java.io.Outpu... 阅读全文
posted @ 2017-05-15 16:26 26个字符的地狱 阅读(1126) 评论(0) 推荐(0) 编辑
摘要: 按照汉字的拼音排序,用的比较多是在人名的排序中,按照姓氏的拼音字母,从A到Z排序; 如果存储姓名的字段采用的是GBK字符集,那就好办了,因为GBK内码编码时本身就采用了拼音排序的方法(常用一级汉字3755个采用拼音排序,二级汉字就不是了,但考虑到人名等都是常用汉字,因此只是针对一级汉字能正确排序也够 阅读全文
posted @ 2017-05-06 12:52 26个字符的地狱 阅读(1440) 评论(0) 推荐(0) 编辑
摘要: MySQL根据配置文件会限制server接受的数据包大小。 有时候大的插入和更新会被max_allowed_packet 参数限制掉,导致失败。 查看目前配置, Windows 系统 配置文件为 my.ini, max 系统 配置文件为 my.cnf 此处使用本地数据库操作: cmd 进入mysql 阅读全文
posted @ 2017-02-18 09:42 26个字符的地狱 阅读(898) 评论(0) 推荐(0) 编辑
摘要: 1 public class Test01 { 2 public static void main(String[] args) { 3 String code = Test01.randomCode(32); 4 System.out.println(code); 5 } 6 7 // 返回随机字符串, 8 pu... 阅读全文
posted @ 2016-12-01 13:18 26个字符的地狱 阅读(532) 评论(0) 推荐(0) 编辑
摘要: @Entity -- 实体类@Table(name = "hat_province", catalog = "news") -- 对应的表name -- 表名catalog -- 数据库名@Id -- 主键@GeneratedValue(strategy=GenerationType.AUTO) - 阅读全文
posted @ 2016-11-05 17:16 26个字符的地狱 阅读(288) 评论(0) 推荐(0) 编辑