# form

# 清空 input[type=file]

// e => DOMelement
function resetFormElement(e) {
  e.wrap('<form>').closest('form').get(0).reset();
  e.unwrap();

  // Prevent form submission
  e.stopPropagation();
  e.preventDefault();
}
Last Updated: 5/14/2022, 11:38:45 AM