jquery动态生成json

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

posted @ 2017-02-13 19:40  天藐水瓶  阅读(4964)  评论(0)    收藏  举报