码迷,mamicode.com
首页 > 其他好文 > 详细

ligerUI的ligerGrid表格

时间:2018-08-31 15:46:48      阅读:408      评论:0      收藏:0      [点我收藏+]

标签:var   ext   row   styles   jquery   use   base   1.9   div   

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link href="./javascripts/ligerUI_v133/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
<link href="./javascripts/ligerUI_v133/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />

<script src="./javascripts/jquery/jquery-1.9.0.min.js" type="text/javascript"></script>
<script src="./javascripts/ligerUI_v133/js/core/base.js" type="text/javascript"></script>
<script src="./javascripts/ligerUI_v133/js/ligerui.min.js" type="text/javascript"></script>
<script src="./javascripts/json2.js" type="text/javascript"></script>
<title></title>
</head>

<body>
<div id="maingrid"></div>


<script type="text/javascript">
$(function(){

var griddata = [
{ userid: ‘001‘, name: ‘部门01‘ },
{ userid: ‘002‘, name: ‘部门01‘ },
{ userid: ‘003‘, name: ‘部门01‘ },
{ userid: ‘004‘, name: ‘部门02‘ },
{ userid: ‘005‘, name: ‘部门02‘ },
{ userid: ‘006‘, name: ‘部门02‘ },
{ userid: ‘007‘, name: ‘部门03‘ }
];

var grid = $("#maingrid").ligerGrid({
columns: [
{ name: ‘userid‘, display: ‘序号‘, width: 200 },
{ name: ‘name‘, display: ‘名称‘, width: 300 }
],
data: { Rows: griddata }
});

})
</script>
</body>

</html>

ligerUI的ligerGrid表格

标签:var   ext   row   styles   jquery   use   base   1.9   div   

原文地址:https://www.cnblogs.com/hnzkljq/p/9565894.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!