0

在我的 jquery-ui 可拖动我有这个 -

....
_mouseMove: function(event) {
// IE mouseup check - mouseup happened when mouse was out of window
if ($.browser.msie && !event.button) {
    return this._mouseUp(event);
}

if (this._mouseStarted) {
    this._mouseDrag(event);
        return event.preventDefault();
    }

    if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {
        this._mouseStarted =
            (this._mouseStart(this._mouseDownEvent, event) !== false);
        (this._mouseStarted ? this._mouseDrag(event) : this._mouseUp(event));
    }

return !this._mouseStarted;
},
....

请注意 Internet Explorer 的启动条件。现在我的网页中发生的事情是拖动不适用于 IE9 和 IE10。它适用于 IE8,(我猜 html 标记错误必须对此做一些事情,我并不担心)。当我评论条件拖动在 IE9 和 IE10 中有效时,即我找到了解决我面临的问题的方法。但由于它是非常高级的 javascript,我在这里期待有人帮助解释在上述情况下发生了什么。

4

0 回答 0