jQuery 1.0.2

2020-05-23 06:10:44易采站长站整理

        if ( a.constructor == Array || a.jquery ) {
            // Serialize the form elements
            for ( var i = 0; i < a.length; i++ )
                s.push( a[i].name + “=” + encodeURIComponent( a[i].value ) );
        // Otherwise, assume that it’s an object of key/value pairs
        } else {
            // Serialize the key/values
            for ( var j in a )
                s.push( j + “=” + encodeURIComponent( a[j] ) );
        }
        // Return the resulting serialization
        return s.join(“&”);
    }
});
} // close: if(typeof window.jQuery == “undefined”) {