请问,ext相关,dom为空或不是对象的错误,高分求解,改好追加悬赏....
<html><head><title>panel</title><linkrel="stylesheet"type="text/css"href="ext-3.2.1/r...
<html>
<head>
<title>panel</title>
<link rel="stylesheet" type="text/css" href="ext-3.2.1/resources/css/ext-all.css" />
<script type="text/javascript" src="ext-3.2.1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="ext-3.2.1/ext-all.js"></script>
<script>
Ext.onReady(function(){
var panel=new Ext.Panel({
title:"面板",
width:500,
height:300,
html:"<h1><font color='blue'>这是Ext的面板</font></h1>"
});
panel.render("test");
});
</script>
</head>
<body>
<div>
</div>
</body>
</html> 展开
<head>
<title>panel</title>
<link rel="stylesheet" type="text/css" href="ext-3.2.1/resources/css/ext-all.css" />
<script type="text/javascript" src="ext-3.2.1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="ext-3.2.1/ext-all.js"></script>
<script>
Ext.onReady(function(){
var panel=new Ext.Panel({
title:"面板",
width:500,
height:300,
html:"<h1><font color='blue'>这是Ext的面板</font></h1>"
});
panel.render("test");
});
</script>
</head>
<body>
<div>
</div>
</body>
</html> 展开
4个回答
展开全部
<html>
<head>
<title>panel</title>
<link rel="stylesheet" type="text/css" href="./ext-3.2.1/resources/css/ext-all.css" />
<script type="text/javascript" src="./ext-3.2.1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="./ext-3.2.1/ext-all.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
var panel=new Ext.Panel({
title:"面板",
width:500,
height:300,
html:"<h1><font color='blue'>这是Ext的面板</font></h1>"
});
panel.render("test");
});
</script>
</head>
<body>
<div id="test">
</div>
</body>
</html>
<head>
<title>panel</title>
<link rel="stylesheet" type="text/css" href="./ext-3.2.1/resources/css/ext-all.css" />
<script type="text/javascript" src="./ext-3.2.1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="./ext-3.2.1/ext-all.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
var panel=new Ext.Panel({
title:"面板",
width:500,
height:300,
html:"<h1><font color='blue'>这是Ext的面板</font></h1>"
});
panel.render("test");
});
</script>
</head>
<body>
<div id="test">
</div>
</body>
</html>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
//Ext.BLANK_IMAGE_URL = '../../resources/images/default/s.gif';
把ID赋给你body中的div,值为“test”
把ID赋给你body中的div,值为“test”
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
这句问题:panel.render("test");
增加一个div,id设为test
增加一个div,id设为test
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询