jsp中 url傳參到背景參數擷取

來源:互聯網
上載者:User

標籤:desc   來源   data   ber   ...   enter   des   load   UI   

datagrid傳值url
方法1:
<input type="hidden" id="sortid">
<table id="dg" class="easyui-datagrid" title="標題"  data-options="iconCls: ‘icon-save‘,singleSelect: false,sortOrder:‘desc‘,toolbar: ‘#tb‘,idField:‘id‘, url: ‘${ctx }/shzy/Manager?sortid=‘+$("#sortid").val(),method: ‘post‘,pagination:true,fitColumns:false,fit:true,height:420,sortName:‘serialNumber‘,">
    <thead>
<tr>
<th data-options="field:‘ck‘,checkbox:true"></th>
<th data-options="field:‘serialNumber‘,width:80,align:‘center‘,sortable:‘true‘">流水號</th>
<th data-options="field:‘recordTime‘,width:90,align:‘center‘,sortable:‘true‘">錄入時間</th>
<th data-options="field:‘recordOperator‘,width:90,align:‘center‘,sortable:‘true‘">錄入人員</th>
<%--<th data-options="field:‘source‘,width:80,align:‘center‘,sortable:‘true‘">來源</th>--%>
<th data-options="field:‘title‘,width:180,align:‘center‘,sortable:‘true‘">標題</th>
<th data-options="field:‘content‘,width:320,align:‘center‘">主要內容</th>
<%--<th data-options="field:‘exp2‘,width:100,align:‘center‘,sortable:‘true‘">分類</th>--%>
<th data-options="field:‘annex‘,width:80,align:‘center‘,hidden:‘true‘">附件</th>
</tr>
</thead>
</table>
方法2:
<table id="dg" toolbar="#tb"></table>

$(‘#dg‘).datagrid({
idField : ‘id‘,
title:"社會資源管理",
url:"/ccewis/shzy/Manager?sortid="+document.getElementById(‘sortid‘).value,

fit : true,

height:420,
loadMsg : ‘資料載入中...‘,
pageSize:10,
method:‘post‘,
pagination:true,
sortName:‘serialNumber‘,
sortOrder:‘desc‘,
pageList:[10,20,30,40,50],
columns:[[
{field:‘ck‘,checkbox:true},
{field:‘id‘,title:‘id‘,hidden:true},
{field:‘serialNumber‘,title:‘流水號‘,width:80,align:‘center‘,sortable:true},
{field:‘recordTime‘,title:‘錄入時間‘,width:90,align:‘center‘,sortable:true},
{field:‘recordOperator‘,title:‘錄入人員‘,width:90,align:‘center‘,sortable:true},
{field:‘source‘,title:‘來源‘,width:80,align:‘center‘,sortable:true},
{field:‘title‘,title:‘標題‘,width:180,align:‘center‘,sortable:true},
{field:‘content‘,title:‘主要內容‘,width:320,align:‘center‘,sortable:true},
{field:‘exp2‘,title:‘分類‘,width:100,align:‘center‘,sortable:true},
{field:‘annex‘,title:‘附件‘,width:80,align:‘center‘,sortable:true}
]],
overflow : false,
fitColumns : false,
singleSelect : false
});

 

jsp中 url傳參到背景參數擷取

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.