此处存在问题
textarea,然后将其更改为
default开关值
使用它来为许多控件分配值:
function populate(frm, data) { $.each(data, function(key, value) { var ctrl = $('[name='+key+']', frm); switch(ctrl.prop("type")) { case "radio": case "checkbox": ctrl.each(function() { if($(this).attr('value') == value) $(this).attr("checked",value); }); break; default: ctrl.val(value); } }); }


