教程集 www.jiaochengji.com
教程集 >  脚本编程  >  Asp.net  >  正文 Ext is not defined

Ext is not defined

发布时间:2017-10-22   编辑:jiaochengji.com
教程集为您提供Ext is not defined等资源,欢迎您收藏本站,我们将为您提供最新的Ext is not defined资源

    隔开一段时间没有使用Ext,再配置环境时,一个问题竟纠缠我一个下午,FireFox下,Debug的Concol显示:



<span style="COLOR: #000000">Ext is not defined                           ext-base.js
Ext.onReady() is not a function   aray-grid.js
Ext is null                                         ext-all.js
    </span>

    首先,我确定将ext-all.js与ext-base.js包含进了页面,它的路径不存在任何问题,<script type="text/javascript" src="">在IDE vs下,src可以通过图形化操作,选择文件。而ext-all.js与ext-base.js是我在ext 1.1.1包中拷出来的,如此也排除了版本的问题。

    郁闷地我尝试了各种办法,连ext-all.js与ext-base.js引入的先后顺序都变化几回来调试。想想,有个朋友在回帖中说,将ext-base.js上面添加<!-- EXT LIB -->这注释就解决问题,这个类似迷信的做法是多么可笑。

    终于,在http://extjs.com/forum/showthread.php?t=23680找到了一些东西:

    我拷贝了/adapter/ext/ext-base.js(34k)的文件,替换了项目中引入的文件,问题解决了。



您可能感兴趣的文章:
Ext is not defined
提示$ is not defined错误分析及解决
获取一个目录下所有文件扩展名的批处理
jQuery ReferenceError: $ is not defined 错误的处理办法
Server Error in '/' Application.
jQuery的表格扩展插件 jTable
PHP与命令行交互(实现查找和替换)
怎么理解Python中包的引入?
zf中Invalid command 'RewriteEngine'错误的解决办法
IOCP Thread Pooling in C

[关闭]
~ ~