2026年软考网络管理员编程能力试题及答案.docxVIP

  • 1
  • 0
  • 约6.25千字
  • 约 9页
  • 2026-09-21 发布于四川
  • 举报

2026年软考网络管理员编程能力试题及答案.docx

2026年软考网络管理员编程能力试题及答案

一、网页编程题(15分)

阅读以下HTML与JavaScript代码,回答相关问题。

formname=regFormaction=register.phpmethod=post

用户名:inputtype=textname=usernamebr

密码:inputtype=passwordname=pwdbr

确认密码:inputtype=passwordname=repwdbr

inputtype=buttonvalue=注册onclick=checkForm()

/form

scripttype=text/javascript

functioncheckForm(){

varun=document.regForm.username.value;

varpwd=document.regForm.pwd.value;

varrepwd=document.regForm.repwd.value;

if(un==||pwd==||repwd==){

alert(所有字段均不能为空);

return;

}

if(un.length3||un.length16){

alert(用户名长度应

文档评论(0)

1亿VIP精品文档

相关文档