DWZ中文资料网:
1、刷新当前页面
navTabPageBreak();
2、向后台传多个数据
页面传入后台
<show:show uri="ds/df">
<li><a class="icon" id="sendCheckHidden" href="${xx}/ds/df?settleId={settleId}&status=WAIT_SETTLE" rel="df" title="确认数据无误?" target="ajaxTodo"><span>测试1</span></a></li>
</show:show>
<show:show uri="vc/fg">
<li><a class="icon" href="${xx}/vc/fg?settleId={settleId}" rel="fg" target="dialog" width="500" height="300" mask="true"><span>测试2</span></a></li>
</show:show>
页面设置
<table class="list" width="100%" targetType="navTab" layoutH="115" style="text-align: center;">
<thead>
<tr>
<th>测试数据1</th>
<th>测试数据2</th>
<th>测试数据3</th>
</tr>
</thead>
<tbody>
<c:forEach items="${merchantSettleList}" var="info">
<tr target="settleId" rel="${info.fsfs}&remark=${info.sfs}&oldStatus=${info.sfs}">
<td>${info.fsfs}</td>
<td>${funcs:formatMoney(info.sfs)}</td>
<td>${funcs:formatMoney(info.sfs)}</td>
</tr>
</c:forEach>
</tbody>
</table>
3、获取页面元素自定义属性的值
例:获取复选框neme="ids"所有选中的settleId属性的值
function goToupdateCard(){ var settleIds = ""; var cnt = 0; var $box = navTab.getCurrentPanel(); $box.find("input:checked").filter("[name='ids']").each(function(i){ if(cnt==0){ settleIds = settleIds + $(this).attr("settleId"); }else{ settleIds = settleIds + "," + $(this).attr("settleId"); } cnt = cnt + 1; }); if (cnt == 0) { alertMsg.info("请选择数据"); return false; } $.ajax({ url:"<%=path %>/xxxxx/ttttttttt?settleIds="+settleIds, type:'POST', //async:false, contentType :'application/json', dataType :'json', data:"", success:function(data) { alertMsg.info(data.message); }, error:function(data){ alertMsg.info("网络错误!"); } }); }
<table class="list" width="100%" targetType="navTab" layoutH="190" style="text-align: center;">
<thead>
<tr>
<th><input type="checkbox" group="ids" class="checkboxCtrl"></th>
<th>商户编号</th>
<th>商户名称</th>
</tr>
</thead>
<tbody>
<c:forEach items="${settleInfoList}" var="info">
<tr style="${info.amount<=0 ? "color: red;" :""}" target="id" rel="${info.batchNo}|${info.postingDate}">
<td>
<c:if test='${info.state == "WAIT_SETTLE" || info.state == "FAILED"}'><input name="ids" value="${info.batchNo}" state="${info.state}" settleId="${info.settleId}" type="checkbox"></c:if>
<c:if test='${info.state != "WAIT_SETTLE" && info.state != "FAILED"}'><input type="checkbox" disabled="disabled"></c:if>
</td>
<td>${info.spCode}</td>
<td>${info.spName}</td>
</tr>
</c:forEach>
</tbody>
</table>