使用ExtJS的Panel容器时时,出现‘null’为空或不是对象,ext-all.js 无法显示面板 该怎么解决? 谢谢!
说的越详细越好谢谢<!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/T...
说的越详细越好 谢谢
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Extjs2</title>
<link rel="stylesheet" href="extjs/resources/css/ext-all.css" type="text/css"></link>
</head>
<script type="text/javascript" src="extjs/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="extjs/ext-all.js"></script>
<script type="text/javascript">
var panel=new Ext.TabPanel({width:300,heigth:200,items:[{title:"面板1",height:30},{ title:"面板2",height:30},{title:"面板3",height:20}]});
panel.render("hello");
</script>
<body>
</body>
</html> 展开
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Extjs2</title>
<link rel="stylesheet" href="extjs/resources/css/ext-all.css" type="text/css"></link>
</head>
<script type="text/javascript" src="extjs/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="extjs/ext-all.js"></script>
<script type="text/javascript">
var panel=new Ext.TabPanel({width:300,heigth:200,items:[{title:"面板1",height:30},{ title:"面板2",height:30},{title:"面板3",height:20}]});
panel.render("hello");
</script>
<body>
</body>
</html> 展开
1个回答
展开全部
最好把代码发出来,一般情况下,在IE里面,很有可能是因为包含了错误的字符。
比如
1 ,
{
aaa:"bbb",
bbb:"bbb",
}
2,
["aaa","bbb",]
最好能把你的代码贴上来。
比如
1 ,
{
aaa:"bbb",
bbb:"bbb",
}
2,
["aaa","bbb",]
最好能把你的代码贴上来。
追问
刚刚学习Ext 呵呵 帮我看下 谢谢啊
追答
你看下我这段代码和你的代码的区别。
Extjs2
Ext.onReady(function(){
var panel=new Ext.TabPanel({
width:300,
heigth:200,
items:[{
title:"面板1",
height:30
},{
title:"面板2",
height:30
},{
title:"面板3",
height:20
}]
});
panel.render("hello");
})
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询