mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fixed ajax array arguments in $.param
This commit is contained in:
parent
f8b00051c3
commit
8a80d05a44
@ -794,7 +794,7 @@ jQuery.extend({
|
||||
// If the value is an array then the key names need to be repeated
|
||||
if ( a[j] && a[j].constructor == Array )
|
||||
jQuery.each( a[j], function(){
|
||||
s.push( encodeURIComponent(j) + "=" + encodeURIComponent( this ) );
|
||||
s.push( encodeURIComponent(j) + "[]=" + encodeURIComponent( this ) );
|
||||
});
|
||||
else
|
||||
s.push( encodeURIComponent(j) + "=" + encodeURIComponent( a[j] ) );
|
||||
|
Loading…
Reference in New Issue
Block a user