$("#toSearchAllBtn").on("click",function(){
$.get("findAllEnterprise",{},function(listenterPriseInfo){
/* console.log(listhenterPriseInfo); */
if (listenterPriseInfo.length > 0) {
$("#tbenterPriseInfo").empty();
$.each(listenterPriseInfo, function(i, enterPriseInfo) {
var html= "<tr class='success'>"+
"<td>"+
"<td>"+i+"</td>"+
"<td>"+enterPriseInfo.fprovince+"</td>"+ //省份
"<td>"+enterPriseInfo.fcity+"</td>"+ //地市集团
"<td>"+enterPriseInfo.fname+"</td>"+ //煤矿名称
"<td>"+enterPriseInfo.taskayear+"</td>"+//考评年度
"<td>"+enterPriseInfo.fmodifytime+"</td>"+//检查时间
"<td>"+enterPriseInfo.rminemscore.rminemscore+"</td>"+//煤矿得分
"<td>"+enterPriseInfo.FLevel+"</td>"+//标准化等级
"<td>"+
"<a id='toenterPriseInfo"+enterPriseInfo.fguid+"' name='toenterPriseInfoName' data-id='"+enterPriseInfo.fguid+"'>降级</a>"+ /* href='' data-toggle='modal' data-target='#myModal2' */
"</td>"
$("#tbenterPriseInfo").append(html);
});
}
});
});
如何用jsp实现查询功能
最新推荐文章于 2023-04-05 10:19:00 发布
本文详细介绍了如何在Java Web应用程序中使用JSP(JavaServer Pages)来实现数据库查询功能。从建立数据库连接,到编写SQL查询语句,再到将查询结果展示在JSP页面上,一步步解析了整个过程。通过实例代码,读者可以了解如何结合JavaBeans和JDBC进行操作,以实现动态的查询交互。
1万+

被折叠的 条评论
为什么被折叠?



