87,987
社区成员
发帖
与我相关
我的任务
分享
var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
// ...
if ( jQuery.type( key ) === "object" ) {
// ...
for (i in key) {
access( elems, fn, i, key[ i ], true, emptyGet, raw );
}
} else if {
if (fn) {
for ( ; i < length; i++ ) {
fn( elems[ i ], key, raw ? value : value.call( elems[ i ], i, fn( elems[ i ], key ) ) );
}
}
}
// ...
}
jQuery.fn.extend( {
css: function (name, value) {
return access(this, function(){
// ...
})
}
})