jquery动态生成json

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

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