📅  最后修改于: 2022-03-11 15:03:57.684000             🧑  作者: Mango
function validateForm() {
let x = document.forms["myForm"]["fname"].value;
if (x == "") {
alert("Name must be filled out");
return false;
}
}