json = {};
$('#test-form [name]').filter(function() {
if(this.name && this.name !== 'gender' || this.checked){
json[this.name]=this.value;
}
});
json = JSON.stringify(json);
Sign in to make a reply
低调的无力拾起爱的时光
json = {};
$('#test-form [name]').filter(function() {
if(this.name && this.name !== 'gender' || this.checked){
json[this.name]=this.value;
}
});
json = JSON.stringify(json);