谁能告诉我为什么在vs2010中使用extjs,运行得到的是一个空白页呢???代码在下面,非常感谢!!
<%@PageLanguage="C#"AutoEventWireup="true"CodeFile="Default.aspx.cs"Inherits="_Defaul...
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link rel="Stylesheet" type="text/css" href="/ext-3.3.1\ext-3.3.1\resources\css\ext-all.css" />
<script type="text/javascript" src="/ext-3.3.1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="/ext-3.3.1/ext-all-debug.js" ></script>
<script type="text/javascript"> Ext.onReady(function () {
var cm = new Ext.grid.ColumnModel([{ header: '编号', dataIndex: 'id' },{ header: '名称', dataIndex: 'name' },{ header: '描述', dataIndex: 'descn' }]);
var data = [['1', 'name1', 'descn1'],
['2', 'name2', 'descn2'],
['3', 'name3', 'descn3'],
['4', 'name4', 'descn4'],
['5', 'name5', 'descn5']];
var store = new Ext.data.Store({
proxy: new Ext.data.MemoryProxy(data),
reader: new Ext.data.ArrayReader({}, [{ name: 'id' },{ name: 'name' },{ name: 'descn' }])
});
store.load();
var grid = new Ext.grid.GridPanel({
autoHeight: true,
renderTo: 'grid',
store: store,
cm: cm
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
我是新手,才刚刚自学,可以告诉我造成空白页的原因有哪些么???谢谢 展开
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link rel="Stylesheet" type="text/css" href="/ext-3.3.1\ext-3.3.1\resources\css\ext-all.css" />
<script type="text/javascript" src="/ext-3.3.1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="/ext-3.3.1/ext-all-debug.js" ></script>
<script type="text/javascript"> Ext.onReady(function () {
var cm = new Ext.grid.ColumnModel([{ header: '编号', dataIndex: 'id' },{ header: '名称', dataIndex: 'name' },{ header: '描述', dataIndex: 'descn' }]);
var data = [['1', 'name1', 'descn1'],
['2', 'name2', 'descn2'],
['3', 'name3', 'descn3'],
['4', 'name4', 'descn4'],
['5', 'name5', 'descn5']];
var store = new Ext.data.Store({
proxy: new Ext.data.MemoryProxy(data),
reader: new Ext.data.ArrayReader({}, [{ name: 'id' },{ name: 'name' },{ name: 'descn' }])
});
store.load();
var grid = new Ext.grid.GridPanel({
autoHeight: true,
renderTo: 'grid',
store: store,
cm: cm
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
我是新手,才刚刚自学,可以告诉我造成空白页的原因有哪些么???谢谢 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询