1 //#add_sys_cfg 是添加頁面的那個總div的id 2 $(':input', '#add_sys_cfg').not(':button,:submit,:hidden,:radio').val('').removeAttr('checked').removeAttr('selected'); 3 4 //之前在表單中設置的默認值 5 $("#dev_detail").find("input[name='cycle']").val("1000"); 6 //從新渲染 7 form.render();