摘要: ``` $("#submitButton").click(function(){ var data = {}; var t = $('form').serializeArray(); $.each(t, function() { data [this.name] = this.value; }); alert(JSON.stringify(data)); }); ``` 阅读全文
posted @ 2019-12-01 08:52 经典鸡翅 阅读(711) 评论(0) 推荐(0) 编辑