<script type="text/javascript" src="${pageContext.request.contextPath}/style/js/jquery-1.9.1.js"/>
<script type="text/javascript">
var html = "";
var app = $("#fwlx_list");
$(function(){
$.ajax( {
type : "POST",
async : false,
url : "${pageContext.request.contextPath}/index/fwlx_list",
success : function(data) {
var json = eval("("+data+")");
for (var prop in json) {
// html += " key "+prop ;
html += "<div class='bgsbcon' >";
html += "<ul>";
html += "<li style='width:90px; text-align:left;'><a href='#' style='font-size: 15px;' class='currgy'>"+prop+"</a></li>";
//遍历简单的pojo对象
for(var i in json[prop]){
//html += i + " value "+ json[prop][i].wxFuwuxiaoleiName ;
html += "<li><a";
html += " href='${pageContext.request.contextPath}/index/pager_content?fwlx="+json[prop][i].wxFuwuxiaoleiName+"&px=${px}&area=${dist}'";
html += " name='chk_type'> ";
if("${type}" == json[prop][i].wxFuwuxiaoleiName){
html += "<font color='red'>"+json[prop][i].wxFuwuxiaoleiName+"</font>";
}else{
html += ""+json[prop][i].wxFuwuxiaoleiName+"";
}
html += "</a></li>";
}
html += "</div>";
app.append(html);
}
}
});
});
</script>
<div class="product-wrap posone" id="fwlx_list"></div>
2626

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



