2、filebox-print.jsp
$(function () {
$('#btSearch').click(function () {
var FileTitle= $('#FileTitle').val();
var comeDept= $('#comeDept').val();
var sendTime= $('#sendTime').val();
var printDept = $('#printDept').val(); var printUser=$('#printUser').val();
var tbody=window.document.getElementById("tbody-result");
$.ajax({
type: "post",
dataType: "json",
url: "<%=path%>/filebox/fileBox!getToDoFileBoxList.action",
data: {
FileTitle: FileTitle,
comeDept: comeDept,
sendTime: sendTime,
printDept: printDept, printUser:printUser
},
success: function (msg) {
if (msg.ret) {
var str = "";
var data = msg.data;
for (i in data) {
str += "" +
"" + data[i].fileTitle+ "" +
"" + data[i].fileCode+ "" +
"" + data[i].comeDept + "" +
"" + data[i].fileEmerg+ "" +
"" + data[i].alreadyCount+ "" +
"" + data[i].fileSecret+ "" +
"" + data[i].sendTime + "" +
"" + data[i].remark+ "" +
"" + data[i].fileboxId+ "" + "";
}
tbody.innerHTML = str;
}
},
error: function () {
alert("查询失败")
}
});
});
}); 做完之后感觉瞬间就踏实了不少,这个礼拜可以好好休息了。俺接触这个又学到了一点前台的知识了。
以上是“json数据传到前台并解析展示成列表的示例分析”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联行业资讯频道!
网页名称:json数据传到前台并解析展示成列表的示例分析
当前链接:http://shouzuofang.com/article/gidpge.html
免费获取网站建设与品牌策划方案报价
*主要业务范围包括:高端网站建设, 集团网站建设(网站建设网站制作)找网站建设公司就上四川攀枝花网站建设。