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传参到后台的参数获取的更多相关文章

  1. jsp 的url传参中文乱码问题解决办法

    在js文件中,使用连接jsp的url传参,如果参数是中文会出现乱码问题,如下可以解决: 方法一:(已确认 可行) String username = new String(request.getPar ...

  2. 在IE浏览器中url传参长度问题

    1.在这之前我一直以为,应该说是并没有去思考过,url地址传参的长度限制问题:知道在项目材料价格系统中遇到之后,才对这个问题进行了具体的探索.IE中最大的长度限制为2084个,用于get传递数据的长度 ...

  3. get请求中url传参中文乱码问题

    在项目中经常会遇到中文传参数,在后台接收到乱码问题.那么在遇到这种情况下我们应该怎么进行处理让我们传到后台接收到的参数不是乱码是我们想要接收的到的,下面就是我的一些认识和理解. 一:get请求url中 ...

  4. get请求中url传参中文乱码问题--集锦

    一:get请求url中带有中文参数,有三种方式进行处理防止中文乱码 1.如果使用tomcat作为服务器,那么修改tomcat配置文件conf/server.xml中,在  <Connector  ...

  5. Struts2学习-jsp中超链接传参问题

    今天在学习过程中对struts2中超链接的传参问题产生了一些疑惑,不明白jsp中的超链接如何将参数传到Action方法中去的. <s:iterator value="categorys ...

  6. js 获取纯web地址栏中URL传参

       function GetQueryString(name)    {         var reg = new RegExp("(^|&)"+ name +&quo ...

  7. URL传参时中文参数乱码的解决方法

    URL传参时,中文参数乱码的解决: 今天在工作中遇到了这样的一个问题,在页面之间跳转时,我将中文的参数放入到url中,使用location进行跳转传参,但是发现接收到的参数值是乱码.我的代码是这样写的 ...

  8. 点击div 跳转并通过URL传参

    点击div前要先给div绑定要传的参数: //给panel绑定自定义属性,方便在跳转时传带参数,键/值对排列 panel.attr("user_age",user_age); pa ...

  9. 关于微信浏览不能URL传参,URL中的问号被删除

    关于微信浏览不能URL传参,URL中的问号被删除. 尼玛难道没有人遇到过这个问题?看了微信支付SDK3.0的代码,看到urlencode 看到了几次.实际上 在微信浏览器下 header('locat ...

随机推荐

  1. Windows下DNS ID欺骗的原理与实现

    域名系统(DNS)是一种用于TCP/IP应用程序的分布式数据库,它提供主机名字和IP地址之间的转换信息.通常,网络用户通过UDP协议和DNS服务器进行通信,而服务器在特定的53端口监听,并返回用户所需 ...

  2. Hadoop 与 Spark 对比

    Hadoop进行海量数据分析,MR频繁落地,IO操作,计算时间就拉长.由于这种设计影响,计算过程中不能进行迭代计算.造成网络节点数据传输. Spark从理念上就开始改变.应用scala特点解决上面的核 ...

  3. day 61 Django基础之django分页

      Django基础之django分页 一.Django的内置分页器(paginator) view   from django.shortcuts import render,HttpRespons ...

  4. 详解Android广播机制

    应用场景(常见的场景1) (1)同一应用具有多个进程的不同组件之间的消息通信 a)不同应用间的组件之间的消息通信 b)与Android系统在特定情况下的通信,如:系统开机,网络变化等 (2)同一应用内 ...

  5. 07_mybatis延迟加载

    1. 延迟加载 ​ resultMap可以实现高级映射(使用association.collection实现一对一及一对多映射),association.collection具备延迟加载功能. 需求: ...

  6. PyInstaller打包Python源文件为可执行程序exe

    1. 安装PyInstaller 使用命令:pip install PyInstaller时可能会由于网络的问题出现以下问题: pip._vendor.urllib3.exceptions.ReadT ...

  7. shell脚本练习06

    ######################################################################### # File Name: -.sh # Author ...

  8. Invalid prop: type check failed for prop "maxlength". Expected Number, got String.

    1.项目中,使用element-ui的input表单的maxlength属性报错 2.使用场景:       <el-input v-model="fname"  maxle ...

  9. Python xlwt模块

    Examples Generating Excel Documents Using Python’s xlwt Here are some simple examples using Python’s ...

  10. 流程控制&&函数

    1.if 条件语句 if 判断条件: 执行语句…… elif 判断条件: 执行语句…… else: 执行语句…… 2.for 循环 ''' for 后跟变量名,in 后跟序列,注意加冒号 for 循环 ...