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

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

jsp中Java語句內(nèi)的表格不顯示

jsp中Java語句內(nèi)的表格不顯示

慕容7724642 2016-09-08 15:13:53
<body> 在線用戶表 <table?width="403"?border="1"??bordercolor="#000000"> ??<tr> ????<th?width="52"?scope="col">序號</th> ????<th?width="77"?height="30"?scope="col">用戶名</th> ????<th?width="73"?scope="col">IP地址</th> ????<th?width="76"?scope="col">訪問時間</th> ????<th?width="103"?scope="col">來自得url</th> ??</tr> <%? ???@SuppressWarnings("unchecked") ????HashMap<String,Visitor>?map=(HashMap<String,Visitor>)application.getAttribute("ONLINE"); ????Set<String>?ids=map.keySet(); ????Iterator<String>?it=ids.iterator(); ????int?i=3; ????while(it.hasNext()) ????{ ???????String?id=it.next(); ???????Visitor?v=map.get(id); ??????i++; ????? ??%> ?????<tr> ????<td><%?out.print(i);?%>002</td> ????<td><%??out.print(v.getIp());%></td> ????<td><%?%></td> ????<td><%?%></td> ????<td><%?%></td> ?????</tr> ????<tr> ????<td>0</td> ????<td>1</td> ????<td>2</td> ????<td>3</td> ????<td>4</td> ?????</tr> ??<%? ??} ?? ??%> ??? ?? </table> </body> </html>只顯示第一行表格 ,第二第三行不顯示。
查看完整描述

2 回答

?
weenhall

TA貢獻(xiàn)121條經(jīng)驗 獲得超57個贊

那說明沒取到值,用f12在瀏覽器調(diào)試一下

查看完整回答
反對 回復(fù) 2016-09-08
?
han_leirong

TA貢獻(xiàn)1條經(jīng)驗 獲得超0個贊

跟在平常的jsp中一樣,獲取到table這個元素,在控制它只顯示第一個(用JavaScript,或者jQuery。后者簡單點)。

查看完整回答
反對 回復(fù) 2016-09-08
  • 2 回答
  • 0 關(guān)注
  • 1684 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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