document.getElementById("loginForm").onsubmit = function(event) {
// 表单验证逻辑
var isValid = validateForm();
if (!isValid) {
event.preventDefault();
alert("Please fill in all required fields.");
}
};
document.getElementById("loginForm").onsubmit = function(event) {
// 表单验证逻辑
var isValid = validateForm();
if (!isValid) {
event.preventDefault();
alert("Please fill in all required fields.");
}
};