<script type="text/javascript">
Ext.onReady(function(){
Ext.MessageBox.alert("hello","Hello,easyjf open source");
var data = [
[1,'张三','男','20'],
[2,'李四','男','21'],
[3,'王五','女','22']
];
var store = new Ext.data.SimpleStore({data:data,fields:["id","name","sex","age"]});
var grid = new Ext.grid.GridPanel({
renderTo:"hello",
title:"706绿色网吧",
width:150,
height:600,
columns:[
{header:"姓名",dataIndex:"name"},
{header:"性别",dataIndex:"sex"},
{header:"年龄",dataIndex:"age"}
],
[align=left][/align] store:store,
autoExpandColumn:2
});
});
</script>
</head>
<body>
<div id="hello">eee</div>
</body>
本地测试无问题.
检查你的ext类库引入是否正确.
用firebug看有没有详细报错