jquery 清空表单 $(':input','#myform').not(':button, :submit, :reset, :hidden') .val('') .removeAttr('checked') .removeAttr('selected');