admin/view/javascript/d_tinysort/tinysort.js
(开头部分) 18KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* TinySort is a small script that sorts HTML elements. It sorts by text- or attribute value, or by that of one of it's children.
* @summary A nodeElement sorting script.
* @version 2.3.6
* @license MIT
* @author Ron Valstar <ron@ronvalstar.nl>
* @copyright Ron Valstar <ron@ronvalstar.nl>
* @namespace tinysort
*/
(function (root,tinysort) {
'use strict';
if (typeof define==='function'&&define.amd) {
define('tinysort',singleton);
} else {
root.tinysort = tinysort;
}
function singleton(){
return tinysort;
}
}(this,(function() {
'use strict';
var fls = !1
,undef
,nll = null
,win = window
,doc = win.document
,parsefloat = parseFloat
,regexLastNr = /(-?\d+\.?\d*)\s*$/g // regex for testing strings ending on numbers
,regexLastNrNoDash = /(\d+\.?\d*)\s*$/g // regex for testing strings ending on numbers ignoring dashes
,plugins = []
,numCriteria = 0
,criteriumIndex = 0
,largeChar = String.fromCharCode(0xFFF)
,/**options*/defaults = { // default settings
selector: nll // CSS selector to select the element to sort to
,order: 'asc' // order: asc, desc or rand
,attr: nll // order by attribute value
,data: nll // use the data attribute for sorting
,useVal: fls // use element value instead of text
,place: 'org' // place ordered elements at position: start, end, org (original position), first, last
,returns: fls // return all elements or only the sorted ones (true/false)
,cases: fls // a case sensitive sort orders [aB,aa,ab,bb]
,natural: fls // use natural sort order
,forceStrings:fls // if false the string '2' will sort with the value 2, not the string '2'
,ignoreDashes:fls // ignores dashes when looking for numerals
,sortFunction: nll // override the default sort function
,useFlex:fls
,emptyEnd:fls
后面还有 490 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
