$('#frmCustomerConfirmCar').find('[name]').each(function () {
  var type = $(this)[0].nodeName.toLowerCase();
  var name = $(this).attr('name');
  $(type + "[name='" + name + "']").val(data.content[0]['' + name + '']);
});

https://blog.csdn.net/z_l_ming/article/details/51568193

04-19 22:26