阅读历史 |
请收藏本站网址:xxxiaoshuow.com

433第433章 强势镇压(23 / 24)

加入书签

字号≈lt;/bel≈gt;

≈lt;div css=&ot;setfontsize&ot;≈gt;

≈lt;put css=&ot;sizenu&ot; type=&ot;text&ot; vae=&ot;18&ot;≈gt;

≈lt;/div≈gt;

≈lt;/li≈gt;

≈lt;/ul≈gt;

≈lt;/div≈gt;

≈lt;/div≈gt;

≈lt;div css=&ot;foot&ot;≈gt;

≈lt;div css=&ot;pyright&ot;≈gt;

≈lt;div≈gt;

≈lt;/div≈gt;

≈lt;p≈gt;pyright 2023 ≈lt;/p≈gt;

≈lt;/div≈gt;

≈lt;/div≈gt;

≈lt;div css=&ot;odelbg&ot;≈gt;≈lt;/div≈gt;

≈lt;script src=&ot;

≈lt;script≈gt;tongji();≈lt;/script≈gt;

≈lt;script≈gt;

排序

var btnc = 0

(&ot;rtg a&ot;)click(function () {

btnc++

if (btnc == 1) {

(&ot;rtg a&ot;)eq(1)hide()

(&ot;rtg a&ot;)eq(0)show()

} else {

(&ot;rtg a&ot;)eq(0)hide()

(&ot;rtg a&ot;)eq(1)show()

btnc = 0

}

})

var doarr = [];

var htrr = [];

var alrr = [];

从小到大排序

function salltobig() {

alrrrt(function (a, b) { return ana - bna });

appenddo();

}

从大到小排序

function bigtosall() {

alrrrt(function (a, b) { return bna - ana });

appenddo()

}

取出所有li的data-nu属性放进数组

tdo()

function tdo() {

('catalog ul li')each(function () {

doarr[] = (this)attr(&ot;data-nu&ot;);

htrr[] = (this)htl();

})

for (var i = 0; i ≈lt; doarrlength; i++) {

var activesubjectbject = {};

for (var j = 0; j ≈lt; htrrlength; j++) {

if (i == j) {

activesubjectbjectna = doarr[i];

activesubjectbjectvae = htrr[j];

alrrph(activesubjectbject);

}

}

}

nlelog(alrrlength)

}

铺数据

function appenddo() {

(&ot;catalog ul&ot;)htl(&ot;&ot;)

for (i = 0; i ≈lt; alrrlength; i++) {

('catalog ul')append(

↑返回顶部↑

书页/目录