首页 技术 正文
技术 2022年11月12日
0 收藏 624 点赞 3,806 浏览 2319 个字

function doSearch2() {
var strsql = $(‘#sssql’).val();
$.ajax({
url: “../HttpHandler/DownloadHandler.ashx?action=StatDownLoadHHH&searchStrSql=” + encodeURI(strsql),
type: “POST”,
error: function () {
$.messager.alert(‘错误’, ‘操作失败!’, ‘error’);
},
success: function (result) {
var result = eval(‘(‘ + result + ‘)’);
//$(‘#tt’).html(result.hmnr);

$(‘#tt’).datagrid(result.columns);
}
});

// $(‘#tt’).datagrid({
// columns: [[
//{ field: ‘itemid’, title: ‘Item ID’, width: 80 },
//{ field: ‘productid’, title: ‘Product ID’, width: 80 }
//]],
// data: [
// { itemid: ‘张三’, productid: ‘1’ },
// { itemid: ‘李四’, productid: ‘2’ }
// ]
// });

// $(‘#tt’).datagrid({
// data: [
// { itemid: ‘张三’, productid: ‘1’ },
// { itemid: ‘李四’, productid: ‘2’ }
// ]
// });

// $(‘#tt’).datagrid(‘insertRow’, {
// index: 1,
// row:{
// itemid:’fsfsdfs’,
// productid:’KKKKKKPPoo’
// }

// });

<!DOCTYPE html>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>软件管理</title>
<link rel=”stylesheet” type=”text/css” href=”../easyui/themes/default/easyui.css” />
<link rel=”stylesheet” type=”text/css” href=”../easyui/themes/icon.css” />
<script type=”text/javascript” src=”../easyui/jquery.min.js”></script>
<script type=”text/javascript” src=”../easyui/jquery.easyui.min.js”></script>
<script type=”text/javascript” src=”../easyui/locale/easyui-lang-zh_CN.js”></script>
<script src=”DownloadRecordsStat.js” type=”text/javascript”></script>

</head>
<body>

<div id=”toolbar” style=”height:100px”>
<input id=”sssql” class=”easyui-textbox” data-options=”multiline:true” value=”select * from DOWNLOAD”
style=”width:90%;height:100px” ></input>
<a href=”javascript:void(0)” class=”easyui-linkbutton” iconCls=”icon-search” plain=”true” onclick=”doSearch2()”>查询</a>
</div>

<!– <table id=”dg”title=”定性指标基础信息” class=”easyui-datagrid”style=”width:900px; height: 400px; padding-left: 200px;
pagination=”true” rownumbers=”true”fitcolumns=”true”singleselect=”true”>
<thead>
<tr>
<th field =”firstname”width=”50″>定性指标级别</th>
<th field =”lastname”width=”50″>分数</th>
</tr>
</thead>
<tbody>
<tr>
<td>优秀</td>
<td>100</td>
</tr>
<tr>
<td>良好</td>
<td>80</td>
</tr>
<tr>
<td>一般</td>
<td>60</td>
</tr>
<tr>
<td>较差</td>
<td>50</td>
</tr>
</tbody>
</table> –>

<div id = “servicediv” style=”width:100%;height:350px; overflow-y: auto”>
<!–<table id=”dgtbl” style=”width:100%;height:450px” >
</table>–>

<table id=”tt” title=”Frozen Columns” class=”easyui-datagrid” style=”width:550px;height:250px”

singleSelect=”true” iconCls=”icon-save”>
</table>

</div>

</body>
</html>

上一篇: Angular初步
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,492
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,907
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,740
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,495
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:8,133
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:5,297