关于Jquery的表格插件FlexiGrid的问题

千里之行-非一朝一夕 2012-03-13 01:45:48
<%@ page language="java" import="java.util.*"  pageEncoding="utf-8"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">

<title>测试FlexiGrid</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="css/flexigrid.css">
<script type="text/javascript" src="js/jquery.flexigrid.js"></script>
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var grid = $("#flex1").flexigrid({
url: '../testGrid/grid_getInitGridData.action',
dataType: 'json',
colModel : [
{display: '编号', name : 'id', width : 50, sortable : true, align: 'center'},
{display: '名称', name : 'name', width : 150, sortable : false, align: 'center'}
,
sortname: "id",
sortorder: "desc",
usepager: true,
useRp: true,
rp: 10,
showTableToggleBtn:true,
width: 760,
height: 280
});
});
</script>
</head>

<body style="overflow-y:hidden">
<div id="ptable" style="margin:10px">
<table id="flex1" style="display:none"></table>
</div>
</body>
</html>
]


提示对象没有该对象或属性?是版本有问题??
...全文
145 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 的回复:]
是不是colModel少了“]”?
[/Quote]

呵呵。。
是缓存的问题。。你说的那个是我没弄好的格式,不好意思
shoulin_huang 2012-06-07
  • 打赏
  • 举报
回复
是不是colModel少了“]”?
  • 打赏
  • 举报
回复
没人遇到么??
就是 var grid = $("#flex1").flexigrid({
遇到的。。。

87,989

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧