0

下面是文件 ext-all-dev.js 中的代码片段。下面的 JavaScript 异常仅在 Internet Explorer 8 (IE) 中发生。我没有尝试过任何其他版本的 Internet Explorer。当我在运行我的应用程序时在这行代码上放置一个断点时,浏览器在 IE 中冻结。所以我没有办法在 IE 中解决这个问题。有没有一种简单的方法可以判断哪些代码可能正在调用此行?我感觉某些拖放功能可能会导致这种情况(因为函数注释),但这是一个猜测。我现在唯一的选择是使用 Google Chrome 或 Mozilla Firefox 开始向后追溯。除非您知道可能导致此问题的原因,否则我只是在寻找有关故障排除的建议。

/**
 * Moves Component to the provided target instead.
 * @private
 */
moveItem : function(item, target, position) {
        target = target.dom || target;
        if (typeof position == 'number') {
            position = target.childNodes[position];
        }
        target.insertBefore(item.el.dom, position || null);  // line 51942
        item.container = Ext.get(target);
        this.configureItem(item);
    },

例外:

Invalid argument.
ext-all-dev.js line 51942 character 9
4

1 回答 1

0

将树拖放插件完全限定的类名放入所需的配置中。

于 2014-04-17T18:17:54.740 回答