extjs入门
<metahttp-equiv="Content-Type"content="text/html;charset=utf-8"<html><head><title>Ext...
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"
<html>
<head>
<title>Extjs</title>
<link rel="stylesheet" type="text/css" src="../../resources/css/ext-all.css">
<script type="text/javascript" src=../../adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../../ext-all.js"></script>
<script type="text/javascript" src="../examples.js"></script>
<script>
Ext.onReady( function()
{
Ext.MessageBox.alert( "hello","hello,kity" );
} );
</script>
</head>
<body>
</body>
</html>
此页在examples文件夹中的一个新建的文件夹中在运行此页面时报Ext is undefined 路径引得也正确,不知道还缺什么,希望有人指点一下 展开
<html>
<head>
<title>Extjs</title>
<link rel="stylesheet" type="text/css" src="../../resources/css/ext-all.css">
<script type="text/javascript" src=../../adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../../ext-all.js"></script>
<script type="text/javascript" src="../examples.js"></script>
<script>
Ext.onReady( function()
{
Ext.MessageBox.alert( "hello","hello,kity" );
} );
</script>
</head>
<body>
</body>
</html>
此页在examples文件夹中的一个新建的文件夹中在运行此页面时报Ext is undefined 路径引得也正确,不知道还缺什么,希望有人指点一下 展开
4个回答
展开全部
那是因为你的文件引用的路径不对了,你新建的了一个文件夹,那么你的引用路径自然也也就深了一层了
<script type="text/javascript" src=../../adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../../ext-all.js"></script>
<script type="text/javascript" src="../examples.js"></script>
改为
<script type="text/javascript" src=../../../adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../../../ext-all.js"></script>
<script type="text/javascript" src="../../examples.js"></script>
<script type="text/javascript" src=../../adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../../ext-all.js"></script>
<script type="text/javascript" src="../examples.js"></script>
改为
<script type="text/javascript" src=../../../adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../../../ext-all.js"></script>
<script type="text/javascript" src="../../examples.js"></script>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<script type="text/javascript" src=../../adapter/ext/ext-base.js"></script>
少了引号
少了引号
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<link rel="stylesheet" type="text/css" src="../../resources/css/ext-all.css">
<script type="text/javascript" src=../../adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../../ext-all.js"></script>中的路径指定../有误 只写一个便可 如
<link rel="stylesheet" type="text/css" src="../resources/css/ext-all.css">
<script type="text/javascript" src=../../adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../../ext-all.js"></script>中的路径指定../有误 只写一个便可 如
<link rel="stylesheet" type="text/css" src="../resources/css/ext-all.css">
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询