一开始引入的头文件是 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