第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

幫忙排序一下,js怎么按開工率大的排在前面,條件是村名也跟著一起。

幫忙排序一下,js怎么按開工率大的排在前面,條件是村名也跟著一起。

兼容并包 2018-06-06 14:05:41
<!doctype?html> <html?lang="en"> <head> ????<meta?charset="UTF-8"> ????<meta?name="viewport" ?content="width=device-width,?user-scalable=no,?initial-scale=1.0,?maximum-scale=1.0,?minimum-scale=1.0"> ????<meta?http-equiv="X-UA-Compatible"?content="ie=edge"> ????<title>Document</title> </head> <body> <style> ?*{margin:?0;padding:?0;} ???.xa{ ??????height:?37px; ?width:?900px; ?background:#3090d8; ?border-bottom:1px?solid?#75d2ff; ?} ???.xa?.xa11{ ??????width:?200px; ?line-height:?37px; ?text-align:?center; ?float:?left; ?font-size:14px; ?color:#fff; ?font-family:"微軟雅黑"; ?} ???.myscroll?{?width:900px; ?height:387px; ?line-height:37px; ?overflow:hidden; ?background:#3090d8;?font-size:?14px;} ???.myscroll?li?{?height:?37px;border-bottom:1px?solid?#75d2ff;list-style:?none; ?} ???.myscroll?a?{?color:?#333;?text-decoration:?none;} ???.myscroll?a:hover?{?color:?#ED5565;?text-decoration:?underline;} ???.myscroll?li?.xa12{ ??????float:?left; ?width:200px; ?text-align:?center; ?font-size:14px; ?color:#fff; ?font-family:"微軟雅黑"; ?} </style> ???<div??class='xa'> ??????<div?class='xa11'>序號(hào)</div> ??????<div?class='xa11'>行政村</div> ??????<div?class='xa11'>進(jìn)度(開工率%)</div> ???</div> ???<div??class="myscroll"?id="myscroll"> ??????<ul?style="margin-top:?0px;"> ????????????<li> ???????????????<div?class='xa12'><b></b></div> ???????????????<div?class='xa12'>村1</div> ???????????????<div?class='xa12'>20</div> ????????????</li> ????????????<li> ???????????????<div?class='xa12'><b></b></div> ???????????????<div?class='xa12'>村2</div> ???????????????<div?class='xa12'>60</div> ????????????</li> ????????????<li> ???????????????<div?class='xa12'><b></b></div> ???????????????<div?class='xa12'>村3</div> ???????????????<div?class='xa12'>40</div> ????????????</li> ??????</ul> ???</div> <script?type="text/javascript"?src="jquery-3.3.1.js"></script> <script?type="text/javascript"> ?var?xh?=document.getElementById("myscroll").getElementsByTagName("b"); ?if(xh.length>0){ ????????for(var?u=0;u<xh.length;u++){ ????????????{ ????????????????var?s=xh[u].innerHTML; ?xh[u].innerHTML=u+1; ?} ????????} ????} </script> </body> </html>
查看完整描述

2 回答

?
兼容并包

TA貢獻(xiàn)83條經(jīng)驗(yàn) 獲得超67個(gè)贊

https://img1.sycdn.imooc.com//5b187e190001846404270279.jpg嗯? ,我知道你說的那個(gè),我只想用js簡單排序一下 , 不過我用js做出來了。點(diǎn)擊上面按鈕都可以排序。

查看完整回答
1 反對(duì) 回復(fù) 2018-06-07
?
野生碼農(nóng)在線co腚

TA貢獻(xiàn)134條經(jīng)驗(yàn) 獲得超63個(gè)贊

這種都是從數(shù)據(jù)庫取的數(shù)據(jù),order by排序的,你做這種靜態(tài)頁面的排序干嘛

查看完整回答
反對(duì) 回復(fù) 2018-06-06
  • 2 回答
  • 0 關(guān)注
  • 1730 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)