Blogger Information
Blog 19
fans 0
comment 0
visits 9860
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
classlist对象和表单非空验证
newbie
Original
447 people have browsed it

classlist对象

添加

删除

动态添加

表单非空验证

  1. document.forms.login.password.onblur = function () {
  2. if (this.value.length === 0) {
  3. alert("密码不能为空");
  4. return false;
  5. }
  6. };

Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post