【单选题】【消耗次数:1】
页面中有一表单myform,表单中有名为txtEmail的输入电子邮件文本框,则以下验证电子邮件格式必须包含点符号(.)代码正确的是( ).(选择 一项)(选择一项)
var strEmail = document.myform.txtEmail.value; if(strEmail.indexOf(.,0)==-1){ alert(电子邮件格式不正确\n必须包含点符号! document.myform.txtEmail.focus( ); }
var strEmail = document.myform.txtEmail.text; if(strEmail.indexOf(.,0)==-1){ alert(电子邮件格式不正确\n必须包含点符号! document.myform.txtEmail.focus( ); }
var strEmail = document.myform.txtEmail.value; if(strEmail.concat(.,0)==-1){ alert(电子邮件格式不正确\n必须包含点符号! document.myform.txtEmail.focus( ); }
var strEmail = document.myform.txtEmail.text; if(strEmail.concat(.,0)==-1){ alert(电子邮件格式不正确\n必须包含点符号! document.myform.txtEmail.focus( ); }
参考答案:
复制
纠错
相关题目
【单选题】 页面中有一表单myform,表单中有名为txtEmail的输入电子邮件文本框,则以下验证电子邮件格式必须包含点符号(.)代码正确的是( ).
①  var strEmail = document.myform.txtEmail.value; if(strEmail.indexOf(.,0)==-1){ alert(电子邮件格式不正确\n必须包含点符号!); document.myform.txtEmail.focus( ); }
②  var strEmail = document.myform.txtEmail.text; if(strEmail.indexOf(.,0)==-1){ alert(电子邮件格式不正确\n必须包含点符号!); document.myform.txtEmail.focus( ); }
③  var strEmail = document.myform.txtEmail.value; if(strEmail.concat(.,0)==-1){ alert(电子邮件格式不正确\n必须包含点符号!); document.myform.txtEmail.focus( ); }
④  var strEmail = document.myform.txtEmail.text; if(strEmail.concat(.,0)==-1){ alert(电子邮件格式不正确\n必须包含点符号!); document.myform.txtEmail.focus( ); }
【单选题】 页面中有一个表单myform,表单中有名为txtName的输入用户名的文本框,则以下验证用户名非空的代码正确的是( )。(选择一项)
①  var name = document.myform.txtName.value; if(name==){ alert(用户名不能为空! document.myform.txtName.focus( ); }
②  var name = document.myform.txtName.text; if(name==){ alert(用户名不能为空! document.myform.txtName.focus( ); }
③  var name = document.myform.txtName.value; if(name.isNull==true){ alert(用户名不能为空! document.myform.txtName.focus( ); }
④  var name = document.myform.txtName.text; if(name.isNull==true){ alert(用户名不能为空! doocument.myform.txtName.focus( ); }
【单选题】 有关电子邮件代理,描述不正确的是( )
①  SMTP是一种“存储转发”协议,适合于进行代理
②  SMTP代理可以运行在堡垒主机上
③  内部邮件服务器通过SMTP服务,可直接访问外部因特网邮件服务器,而不必经过堡垒主机
④  在堡垒主机上运行代理服务器时,将所有发往这个域的内部主机的邮件先引导到堡垒主机上
【单选题】 以下关于电子邮件的说法,不正确的是( )。
①  电子邮件的英文简称是E-mail
②  加入因特网的每个用户都可以通过申请得到一个“电子信箱”
③  在一台计算机上申请的“电子信箱”,只能通过这台计算机上网才能接收和发送邮件
④  一个人可以申请多个电子信箱
【单选题】 下列电子邮件链接格式正确的是( )。
①  ahref=mailto:xxx.com.cn?subject你好!” …/a
②  a href=mailto:xxx@.net?subject你好!” …/a
③  a href=mailto:xxx@com?subject=你好!” …/a
④  a href=mailto:xxx@xxx.com?subject=你好!” …/a
【单选题】 电子邮件地址的格式是( )。
①  用户名@主机域名
②  主机域名@用户名
③  用户名.主机域名
④  主机域名.用户名
【单选题】 电子邮件地址格式中不包括
①  用户名
②  @
③  邮件服务器的域名
④  IP地址
【单选题】 在电子邮件中所包含的信息( )。
①  只能是文字与声音信息
②  只能是文字信息
③  可以是文字、声音和图形图像信息
④  只能是文字和图形图像信息
【单选题】 发送电子邮件时,邮件地址必须包含____所给内容,才能正常发送。
①  用户名、用户口令
②  用户名
③  用户名、邮箱主机的域名
④  用户名、口令和邮箱主机的域名
【多选题】 电子邮件表述正确的是( )
①  互联网最早也是最常见的应用之一
②  发送方可以不通过其他主机或服务器直接将邮件发送到接收方
③  使用SMTP协议来将邮件发送出去
④  使用POP3协议来接收邮件
随机题目
【单选题】 -- Could I speak to John Harris, please.
①  Oh, how are you
②  I’m John
③  I’m listening
④  Speaking
【单选题】 Why don’t you travel to New York on vacation?
①  I don’t want to go
②  Excuse me, because I can’t
③  I want to, but I haven’t got enough money
④  Because I’m going to school today
【单选题】 Could you help me with my homework, please?
①  No, no way
②  No, I couldn’t
③  No, I can’t
④  Sorry I can’t. I have to go to a meeting right now
【单选题】 Determined to __________ as if everything were normal, he responded with a kind of indifference.
①  carry on
②  account for
③  bring up
④  get through
【单选题】 Mary, your dress is really beautiful. How is John?
①  Thank you very much
②  No, no, John is not bad
③  Thank you. He is fine
④  Don’t say that. It’s ugly. John is good
【单选题】 Excuse me, sir. Where is Dr. Brown’s office?
①  You can’t ask me
②  Pardon? I have no idea
③  Please don’t say so
④  Sorry I don’t know, but you can ask the man over there
【单选题】 a reading lamp on the table.
①  There is
②  There has
③  It is
④  It has
【单选题】 And what we got to __________ is a disgrace.
①  come up with
②  catch up with
③  put up with
④  keep up with
【单选题】 In no circumstance __________ .
①  smoking should be allowed on the campus
②  should smoking be allowed on the campus
③  should smoking allowed on the campus
④  should smoking allow on the campus
【单选题】 Do you mind if I join you?
①  I’m very happy to do so
②  Never mind
③  Please do
④  Oh, I can’t