今天闲来无事,决定开始学习ExtJs,但是看书写第一个例子就出错了,于是Google的一下,按照各位大虾们的意见修改,一直于是无补。出现Ext未定义的错误,很明显这是js文件引入的问题。不过经过自己的努力还是搞定了第一个case,呵呵。
下面是我的项目文件结果:
首先开始我是按照正常我们引入js文件的方法做的,这是网页代码:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>The First ExtJs Demo</title>
<link rel="stylesheet" type="text/css" href="resources/css/ext-all.css" />
<script type="text/javascript" src="extjs/adapter/ext/ext-base.js"> </script>
<script type="text/javascript" src="extjs/ext-all.js"> </script>
</head>
<body>
<script >
Ext.onReady(function() {
alert("Congratulations! You have Ext configured correctly!");
});
</script>
</body>
</html>
下面的代码貌似也是正确的:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>The First ExtJs Demo</title>
<link rel="stylesheet" type="text/css" href="./resources/css/ext-all.css" />
<script type="text/javascript" src="./extjs/adapter/ext/ext-base.js"> </script>
<script type="text/javascript" src="./extjs/ext-all.js"> </script>
</head>
<body>
<script >
Ext.onReady(function() {
alert("Congratulations! You have Ext configured correctly!");
});
</script>
</body>
</html>
终于运行成功啦,如果你也遇到此类问题,希望这个对你有用。
- 大小: 22.6 KB
分享到:
相关推荐
ExtJS Ext ExtJavascript Javascript
extJS ext 自学 富客户端,掏钱自学extjs。
NULL 博文链接:https://koowo88.iteye.com/blog/545913
Extjs Ext.Net自动生成工具:WebMisDeveloper 适当降低了对使用者的要求,通过WebMisDeveloper生成的系统更接近实际的WebMIS系统,减少了对系统的修改量,只需要进行业务逻辑的编码,WebMisDeveloper会自动生成一套...
MyEclipse 8.5 + Spket 1.6.18 + ExtJS ext-4.0.0
org.apache.jasper.JasperException: /WEB-INF/tags/ext/body.tag(105,4) PWC6038: "${empty(extLocation)?"js/ext-2.0":extLocation}" contiene expresiones no válidas: javax.el.ELException: Error Parsing: ...
extjs3.0 ext3.0 ext文档 ext例子
Extjs & Ext.net中的一些属性
NULL 博文链接:https://sonckchi.iteye.com/blog/1958861
Ext Extjs 禁止文本和日期编辑 ExtJS中动态设置TextField的readOnly属性
ext的简单测试关于extjs上传等。树、简单界面。显示图片等demo
ExtJS开发插件及Ext包.一个是Spket一个是Ext包
ExtJS是一种主要用于创建前端用户界面,是一个基本与后台技术无关的前端ajax框架。 功能丰富,无人能出其右。 无论是界面之美,还是功能之强,ext的表格控件都高居榜首。 单选行,多选行,高亮显示选中的行,拖拽...
Ext JS - JavaScript Library Copyright (c) 2006-2009, Ext JS, LLC All rights reserved. licensing@extjs.com http://extjs.com/license Open Source License Ext is licensed under the terms of the Open ...
EXTJS_DATEFORMAT 日期格式对应,网上找到的,挺好用的
Extjs3.4 Ext-core.pdf 轻松搞定Extjs.pdf Extjs学习笔记 里面有3.4的开发包,附属:Ext-core.pdf 轻松搞定Extjs.pdf Extjs学习笔记
EXTJS开发包ext-3.2.0 EXTJS开发包ext-3.2.0
代码如下: Ext.onReady(function() { Ext.Msg.alert(‘提示’, ‘逗号分隔参数列表’); //这种方式非常常见的 }); 效果图: 代码如下: Ext.onReady(function() { //定义 JSON(配置对象) var config = { ...
EXT手册 EXTjs手册
NULL 博文链接:https://maoyi606.iteye.com/blog/1782825