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: 9/11/2019, 8:53:50 AM