<html>
<head>
<title>extjs示例</title>
<link rel="stylesheet" type="text/css"
href="./js/resources/css/ext-all.css" />
<script type="text/javascript" src="./js/adapter/ext/ext-base.js"></script>
<!--ext-base.js放在ext-all.js前 -->
<script type="text/javascript" src="./js/ext-all.js"></script>
<script>
Ext.onReady(function(){
var data[[1,'EasyJWeb','EasyJF','www.easyjf.com'],
[2,'EasyJWeb','EasyJF','www.easyjf.com'],
[3,'EasyJWeb','EasyJF','www.easyjf.com']];
var store =new Ext.data.SimpleStore({data:data,fields:["id","name","organization","homepage"]});
var grid=new Ext.grid.GridPanel({
renderTo:"hello",
title:"中国java开源产品及团队",
height:150,
width:600,
columns:[{header:"项目名称",dataIndex:"name"},
{header:"开发团队",dataIndex:"organization"},
{header:"网址",dataIndex:"homepage"}],
store:store,
autoExpandColumn:2
});
});
</script>
</head>
<body>
<div id="hello">
..................................................
</div>
</body>
</html> 显示不出表格??????
<head>
<title>extjs示例</title>
<link rel="stylesheet" type="text/css"
href="./js/resources/css/ext-all.css" />
<script type="text/javascript" src="./js/adapter/ext/ext-base.js"></script>
<!--ext-base.js放在ext-all.js前 -->
<script type="text/javascript" src="./js/ext-all.js"></script>
<script>
Ext.onReady(function(){
var data[[1,'EasyJWeb','EasyJF','www.easyjf.com'],
[2,'EasyJWeb','EasyJF','www.easyjf.com'],
[3,'EasyJWeb','EasyJF','www.easyjf.com']];
var store =new Ext.data.SimpleStore({data:data,fields:["id","name","organization","homepage"]});
var grid=new Ext.grid.GridPanel({
renderTo:"hello",
title:"中国java开源产品及团队",
height:150,
width:600,
columns:[{header:"项目名称",dataIndex:"name"},
{header:"开发团队",dataIndex:"organization"},
{header:"网址",dataIndex:"homepage"}],
store:store,
autoExpandColumn:2
});
});
</script>
</head>
<body>
<div id="hello">
..................................................
</div>
</body>
</html> 显示不出表格??????
<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css" />
<script type="text/javascript" src="extjs/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="extjs/ext-all.js"></script>
<style>
</style>
<script>Ext.onReady(function(){var data = [[1,'EasyJWeb','EasyJF','www.easyjf.com'],
[2,'EasyJWeb','EasyJF','www.easyjf.com'],
[3,'EasyJWeb','EasyJF','www.easyjf.com']];
var store =new Ext.data.SimpleStore({data:data,fields:["id","name","organization","homepage"]});
var grid=new Ext.grid.GridPanel({
renderTo:"hello",
title:"中国java开源产品及团队",
height:150,
width:600,
columns:[{header:"项目名称",dataIndex:"name"},
{header:"开发团队",dataIndex:"organization"},
{header:"网址",dataIndex:"homepage"}],
store:store,
autoExpandColumn:2
}); });
</script>
<div id="hello"></div>
var data= . 少了=HTML code<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link rel="stylesheet" type="text/css" href="……
[/Quote哦
那 我有一个java文件(查询说有记录的)怎样让他显示在jsp页面上呢?
java文件有个方法:page(first,pagesize); 在jsp文件怎样写能获取到后台查询到的记录呢?第一次接触extjs!!很多不懂。。还请多指教啊!!!