刪除數(shù)據(jù)庫表中的數(shù)據(jù) ajax獲取數(shù)據(jù)庫的數(shù)據(jù)?
ajax獲取數(shù)據(jù)庫的數(shù)據(jù)?函數(shù)showlogs() {t/t$(“ able2”)。Empty()//清除原始數(shù)據(jù)。Ajax({T/T/T/T類型:“post”,[T/T/tURL:“<%=請求.
ajax獲取數(shù)據(jù)庫的數(shù)據(jù)?
函數(shù)showlogs() {t/t$(“ able2”)。Empty()//清除原始數(shù)據(jù)。Ajax({T/T/T/T類型:“post”,[T/T/tURL:“<%=請求.getContextPath()%>/日志/queryLogsInfo.action操作“, 數(shù)據(jù)類型:”json“, 成功:功能(數(shù)據(jù)) { (變量i=0 i<)數(shù)據(jù)長度i) { $(“#table2”).append(“<tr style=”行-高度:25px“>” “<tdwidth=“5%”>“數(shù)據(jù)[i].id”</td>“ ”<td width=“5%”>“數(shù)據(jù)[i].receive”</td>“ ”<td width=“8%”>“數(shù)據(jù)[i].data”</td>“ ”<td width=“10%”>“數(shù)據(jù)[i]。Datalength“</TD>”-t/t/t/t/t/t/t“</TR>”)-t/t/t}-t/t}-t/t}-t}-TVAR t=setinterval(“showlogs()”,1000)//每1秒查詢一次數(shù)據(jù)