小编Yur*_*rov的帖子

jquery 2.0 jquery ui datepicker bug - 未捕获的TypeError:无法读取未定义的属性'append'

自从我切换到JQuery的2.0有一个bug与破坏的jQuery UI(1.10.2)Datepickers.

似乎修改了jquery.each()函数的问题.

我跟随

$(this.el_picker).datepicker('destroy');
Run Code Online (Sandbox Code Playgroud)

它调用JQuery UI 第9605行

return this.each(function() {
    typeof options === "string" ?
        $.datepicker["_" + options + "Datepicker"].
            apply($.datepicker, [this].concat(otherArgs)) :
        $.datepicker._attachDatepicker(this, options);
});
Run Code Online (Sandbox Code Playgroud)

然后它在Jquery.each()函数中调用以下:

if ( isArray ) {
        for ( ; i < length; i++ ) {
                value = callback.call( obj[ i ], i, obj[ i ] );

                if ( value === false ) {
                    break;
                }
            }
        } else {
            for ( i in obj ) {
                value = callback.call( obj[ i …
Run Code Online (Sandbox Code Playgroud)

each jquery jquery-ui jquery-ui-datepicker

5
推荐指数
2
解决办法
1万
查看次数

标签 统计

each ×1

jquery ×1

jquery-ui ×1

jquery-ui-datepicker ×1