我觉得啊

#1 Created at ... [Delete] [Delete and Lock User]
json={};
var input = $('#test-form :input[type!=submit]');
input.map(function(){
if(this.type !== "radio" || this.checked){   json[this.name] = this.value; }
});

json=JSON.stringify(json);

反草

#2 Created at ... [Delete] [Delete and Lock User]

你这个最简洁。

froest2012

#3 Created at ... [Delete] [Delete and Lock User]

这个是最简洁的,赞一个


  • 1

Reply