一开始引入的头文件是 ext-debug.js,程序编译正常,但是拖动的时候控制台报错
Uncaught TypeError: undefined is not a function ext-debug.js:12010
点击进去查看错误是:
getPoint : function(){
var xy = this.getXY();
return new Ext.util.Point(xy[0], xy[1]);
Uncaught TypeError: undefined is not a function (repeated 6 times)
Uncaught TypeError: undefined is not a function
Uncaught TypeError: undefined is not a function
},
不知道错在哪里了,应该是找不到Point()这个函数
纠结好久。突然把头文件换成ext-all.js 就没错误了,drag成功
ext-debug.js:12010
本文记录了一位开发者在使用Ext-js库时遇到的拖拽功能报错问题,错误提示为'undefined is not a function'。通过更换引用的库文件从ext-debug.js到ext-all.js后,问题得以解决。
5159

被折叠的 条评论
为什么被折叠?



