函数声明形式:表单验证函数

1
2
3
4
5
6
7
8
9
10
11
12
13
function checkName(){
    console.log('检查用户名');
}
function checkEmail(){
    console.log('检查邮箱地址');
}
function checkPassword(){
    console.log('检查密码');
}
 
checkName();
checkEmail();
checkPassword();

相关文章: