Jquery Map 遍历

$.each(attrs, function(key, value) {
    $("input[name='"+key+"']").val(value);
});