EXTJS null为空或不是对象
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/...
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>测试EXTJS</title>
<link rel="stylesheet" type="text/css" href="../ext-2.0.2/resources/css/ext-all.css" />
<script type="text/javascript" src="../ext-2.0.2/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../ext-2.0.2/ext-all.js"></script>
<script type="text/javascript">
var panel=new Ext.Panel({
title:"hello",
width:300,
height:200,
html:'<h1>Hello,easyif open source</h1>'
});
panel.render("hello");
</script>
</head>
<body>
<div id="hello"></div>
</body>
</html>
能告诉我哪里弄错了吗? 展开
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>测试EXTJS</title>
<link rel="stylesheet" type="text/css" href="../ext-2.0.2/resources/css/ext-all.css" />
<script type="text/javascript" src="../ext-2.0.2/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../ext-2.0.2/ext-all.js"></script>
<script type="text/javascript">
var panel=new Ext.Panel({
title:"hello",
width:300,
height:200,
html:'<h1>Hello,easyif open source</h1>'
});
panel.render("hello");
</script>
</head>
<body>
<div id="hello"></div>
</body>
</html>
能告诉我哪里弄错了吗? 展开
1个回答
展开全部
EXTJS null为空或不是对象,说明谨蠢你引入的文件不对!
检查一下<script type="text/javascript" src="../ext-2.0.2/adapter/ext/乎凯ext-base.js"></script>
<script type="text/javascript" src="../ext-2.0.2/ext-all.js"></script>
看路径是否正确!在火狐浏览器下,页面点右键查看源文件,可祥顷陪以直接点开引用的js,如果可以打开,说明引用正确!
检查一下<script type="text/javascript" src="../ext-2.0.2/adapter/ext/乎凯ext-base.js"></script>
<script type="text/javascript" src="../ext-2.0.2/ext-all.js"></script>
看路径是否正确!在火狐浏览器下,页面点右键查看源文件,可祥顷陪以直接点开引用的js,如果可以打开,说明引用正确!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询