自从我切换到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)