success:function(data)
{
data怎么按格式输出;//
比如说是表格的形式排版输出
}
------解决方案--------------------------------------------------------
自己拼啊 拼好了之后赋值给你要显示的控件上
- JScript code
$.ajax({ type: "get", url: "queryDownLineProdInfo.do", dataType: "json", data:"prodCode="+pCode+"&beginTime="+$("#beginTime").val()+"&endTime="+$("#endTime").val(), contentType: "application/json; charset=utf-8", beforeSend:loading, success: function (data) { var resultMarket=""; resultMarket+=' <tr>'; resultMarket+='<th><s:text name="shId"/></th>'; resultMarket+='<th><s:text name="loginName"/></th>'; resultMarket+='<th><strong><s:text name="tradeCount" /></strong></th>'; resultMarket+='<th><strong><s:text name="tradeAmount" /></strong></th>'; resultMarket+='<th><strong><s:text name="meValidTradeAmount" /></strong></th>'; resultMarket+='<th><strong><s:text name="meOverallPL" /></strong></th>'; resultMarket+='<th><strong><s:text name="shPlEarned" /></strong></th>'; resultMarket+='<th><strong><s:text name="shPlToUpline" /></strong></th>'; resultMarket+='<th><strong><s:text name="spreadEarned" /></strong></th>'; resultMarket+='<th><strong><s:text name="swapEarned" /></strong></th>'; resultMarket+='<th><strong><s:text name="swapToUpline" /></strong></th>'; resultMarket+='<th><strong><s:text name="handleFeeEarned" /></strong></th>'; resultMarket+='<th><strong><s:text name="handleFeeToUpline" /></strong></th>'; resultMarket+='<th><strong><s:text name="shTotalIncomeAmount" /></strong></th>'; resultMarket+='<th><strong><s:text name="shToUplineTotalAmount" /></strong></th>'; resultMarket+='<th><strong><s:text name="pl" /></strong></th>'; $.each(data, function (i, v) { //这里开始循环td就可以了 }); $("#result")(resultMarket); }) } });