jquery动态生成json

$("#myForm :input").each(function () {
data[$(this).attr('id')] = $(this).val().replace(/,/gi, '');
});

原文地址:https://www.cnblogs.com/kevin1988/p/6395118.html