嗨,我一切都很好,但小问题是函数一个接一个地运行。我想所有的功能都必须同时运行这里是我使用的代码
<form id="payForm" action="address-to-be-licensed.html" method="post" novalidate="novalidate" onsubmit="return (fnamevalidaton() && emailvalidate() && lastnamevalidation())">
这将有助于
<form id="payForm" action="address-to-be-licensed.html" method="post" novalidate="novalidate" onsubmit="return validate()">
<script>
function validate() {
var fname = fnamevalidaton();
var email = emailvalidate();
var lastname = lastnamevalidation();
return fname && email && lastname;
}
</script>