`
文章列表
//ISO 8601 Date.prototype.getWeek = function() { var y = this.getFullYear(), m = this.getMonth() + 1, d = this.getDate(), a, b, c, s, e, f, g, n, w; // If month jan. or feb. if (m < 3) { a = y - 1; b = (a / 4 | 0) - (a / 100 | 0) + (a / 400 | 0); c = ((a - 1) / 4 | 0) ...
日期处理类库:moment.js Date.prototype.formatDate = function(format) { /** build on moment.js **/ format = format || 'YYYY-MM-DD hh:mm:ss'; return moment(this, format); /** * * var d = this; var zero = function(value) { return value < 10 ? "0" + value : va ...
http://www.cnblogs.com/dolphinX/p/3486214.html
http://www.cnblogs.com/dolphinX/p/3489269.html
各方面配置齐全啊!!!! GITHUB下载:https://github.com/BobKnothe/autoNumeric
function selectRange (start, end) { var input = this.$input[0]; if (input.setSelectionRange) { input.focus(); input.setSelectionRange(start, end); } else if (input.createTextRange) { var range = input.createTextRange(); range.collapse(true); range.moveStart('character', ...
  /* *Cross browser routine for getting selected range/cursor position */ function getElementSelection(that) { var position = {}; if (that.selectionStart === undefined) { that.focus(); var select = document.selection.createRange(); ...
参考网上已有的combobox,经过改造与完善,特分享一下。 支持一下特性: 1.下拉条目自定义展示 2.加载过程中友好信息提示 3.与linkage配合,方便构造联动(国家/区域) 不足之处, 1.使用jquery position插件定位下拉位置,自身实现缺有些瑕疵 2.供职公司要求URL参数定制化太重,JS代码嵌入postdata校验 3.linakge缓存算法太差 .c-list { overflow:auto; position: absolute; z-index: 999999; display: none; border: 1px s ...
参考网上已有的combobox,经过改造与完善,特分享一下。 支持一下特性: 1.前台/后台JSON数据 2.下拉条目自定义展示 3.前台过滤下拉条目展示 4.加载过程中友好信息提示 5.与linkage配合,方便构造联动(国家/区域) 6.linkage支持本地缓存 不足之处, 1.使用jquery position插件定位下拉位置,自身实现缺有些瑕疵 2.供职公司要求URL参数定制化太重,JS代码嵌入postdata校验 3.linakge缓存算法太差 .c-list { overflow:auto; position: absolute; z-ind ...
Global site tag (gtag.js) - Google Analytics