🌈 搜索
📅  最后修改于: 2022-03-11 15:02:03.635000             🧑  作者: Mango
var myInput = document.getElementById("customx"); if (myInput && myInput.value) { alert("My input has a value!"); }