📅  最后修改于: 2022-03-11 15:01:49.883000             🧑  作者: Mango
const inputFeilds = document.querySelectorAll("input");
const validInputs = Array.from(inputFeilds).filter( input => input.value !== "");
console.log(validInputs) //[array with valid inputs]