`
JavaSam
  • 浏览: 934466 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
网上找的,下载学习吧。
<!DOCTYPE html> <html sort-visualize-app> <head> <meta charset="UTF-8" /> <title>javascript各种排序算法</title> <meta name="Description" content="jsdo.it - share JavaScript, HTML5 and CSS -" /> <meta name="Keywo ...

java缓存技术学习

    博客分类:
  • JAVA
package com.citics.crm.customerwidget.utils; /** * <p>Description: 缓存DTO</p> * @version 1.0 */ public class Cache { private String key;//缓存ID private Object value;//缓存数据 private long timeOut;//更新时间 private boolean expired; // ...
/** * @author wsf(自动补全动补全 支持键盘上下键) */ ; (function (win,$){ // 客户自动补全对象 function _autoComplete(){ this.dataUrl = "/xxxx/customerwidget/queryAllCustName.do";// action this.data = null;// 数据 this.target = null;// 作用于哪个元素(input) this.defaultText = "搜索:全称/简称/首字母" ...
/* * 默认转换实现函数,如果需要其他功能,需自行扩展 * 参数: * tableID : HTML中Table对象id属性值 * 详细用法参见以下 TableToExcel 对象定义 */ function saveAsExcel(tableID) { var tb = new TableToExcel(tableID); tb.setFontStyle("Courier New"); tb.setFontSize(10); tb.setTableBorder(2); tb.setColumnWidth( ...
/** * @author wsf 滚动按需加载 */ ; (function (w,$){ var jutil = null;//工具类 /** * 滚动按需加载对象 */ function demandLoader (){ this.startLoadFlag = {};//是否开始加载 this.allLoaded = false;//是否全部加载完成 //分批加载函数 this.batch = { "fun1":this.loadCustTree, ...
/** * @author wsf hightcharts封装调用 */ ; (function (win,$){ $.chartDataCache = {};//图表数据缓存 /** * hightchart扩展 */ function myChart (){ this.colors = ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4']; this.chartType={}; this.t ...
第一种方式自己实现(笨,但可以知道原理) /** * unicode 转中文 * @param str * @return */ public static String ascii2Native(String str) { StringBuilder sb = new StringBuilder(); int begin = 0; int index = str.indexOf("\\u"); while (index != -1) { sb.append(str.substring(begin, inde ...
/** * @author wsf javascript工具类 */ ; (function (win){ /** * js工具类 */ function jsUtils (){ //TODO 可以初始化一些必要的信息 } /** * utils 原型对象 */ jsUtils.prototype = { constructor:jsUtils, //判断对象类型 _is:function (type,val){ return Object.prototype.toString.call(val) ...
/** * @author wsf数据加载 */ ; var intervalId = null; (function (win,$){ $.myCache = { dataCache : {},//数据缓存 domOperCache:{}//dom操作缓存 } /** * js执行时间测试 */ function test(fn,param){ var s,d; s = new Date().getTime(); fn(param); d = new Date().getTime(); console. ...
var chars = '0123456789abcdef'; function getRandomString() { var len = Math.ceil(Math.random() * 7) + 3; // 4-10 var result = ""; while (len--) { result += chars.charAt(Math.floor(Math.random() * chars.length)); } return result; } var siz ...
spring数据源配置 greenplum.jdbc.driverClassName=org.postgresql.Driver greenplum.jdbc.password=username greenplum.jdbc.url=jdbc:postgresql://10.27.116.31:5432/dbname greenplum.jdbc.username=password <!-- ========================= --> <bean id="customerSingleViewDataSource&quo ...

POI 分组合并单元格

    博客分类:
  • POI
/** * 合并单元格 * @param sheet 要合并单元格的excel 的sheet * @param cellLine要合并的列 * @param startRow 要合并列的开始行 * @param endRow要合并列的结束行 */ private static void addMergedRegion(XSSFSheet sheet, int cellLine,int startRow, int endRow, XSSFWorkbook workbook) { XSSFCellStyle style = workbook.creat ...
Windows Registry Editor Version 5.00   [HKEY_CLASSES_ROOT\folder\shell\cmd] @="在此位置打开CMD" [HKEY_CLASSES_ROOT\folder\shell\cmd\command] @="cmd.exe /k cd %1"

NodeJs 合并文件

 
var fs = require("fs"), path = require("path"), http = require("http"); var MIME = { '.css':'text/css', '.js':'application/javascript' } /** *合并文件 * @param {Object} pathnames * @param {Object} callback */ function combinFiles(pathnames, ...
Global site tag (gtag.js) - Google Analytics