Javascript jqueryui-mouseMove函数IE条件理解

Javascript jqueryui-mouseMove函数IE条件理解,javascript,jquery,jquery-ui,draggable,mousemove,Javascript,Jquery,Jquery Ui,Draggable,Mousemove,在我的jQueryUIDragable中,我有- .... _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._mou

在我的jQueryUIDragable中,我有-

....
_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,我希望有人能帮助我解释在上述情况下发生了什么。

这就是浏览器嗅探不好的原因……版本会发生变化,添加了不同的支持,您会遇到这些问题。另请注意:jQuery删除了yah!我知道
$.browser
。我必须理解代码,因为我必须确保没有回归。