js处理input为空值的时禁用 子错皆落索 2022-07-13 208 阅读1分钟 if (!document.querySelector("input").value) { document.querySelector("input").setAttribute("disabled", 'true') }