摘要: 测试->运行环境chrom console >var aaa = {a:1,b:2,c:function(){console.log(this.a)}} 运行结果:undefined >aaa.c(); 运行结果:1 >var bbb = {a:10,b:20} 运行结果:undefined >aa 阅读全文
posted @ 2016-07-15 15:49 N神3 阅读(208) 评论(0) 推荐(0) 编辑
摘要: jquery.ajaxfileupload.js上传插件,利用iframe提交不刷新页面功能完成。 使用方法 阅读全文
posted @ 2016-07-15 15:25 N神3 阅读(984) 评论(0) 推荐(0) 编辑
摘要: transient List query(Config config, Connection conn, String sql, Object paras[]) throws SQLException { List result = new ArrayList(); PreparedStatement pst = conn.prepare... 阅读全文
posted @ 2016-07-15 11:20 N神3 阅读(301) 评论(0) 推荐(0) 编辑
摘要: public class Test{ //匹配替换掉order by之后的字符串 public static void main(String[] args) { Pattern pattern = Pattern.compile("order\\s+by\\s+[^,\\s]+(\\s+asc|\\s+desc)?(\\s*,\\s*[^,\\s]+(\\s+asc|\\s+desc)?)*"... 阅读全文
posted @ 2016-07-15 10:34 N神3 阅读(286) 评论(0) 推荐(0) 编辑