[综合复习.docxVIP

  • 67
  • 0
  • 约8.93千字
  • 约 22页
  • 2017-01-09 发布于四川
  • 举报
[综合复习

下列JS的语句中, ( )是合法的。A.document.write(“john said,”Hi!””)B.document.write(“john said,”Hi!”’)C. document.write(“john said,”Hi!”)D.document.write(“john said,\”Hi!\””)JS特性不包括( )。A.解释性B.用于客户端C.基于对象D.面向对象下列的( )表达式将返回假。A.!(3=1)B.(4=4)(5=2)C.(“a”= =”a”)(“c”!=”d”)D.(23)||(32)以下( )表达式产生一个0~7之间(含0,7)的随机整数。A.Math.floor(Math.random()*6)B.Math.floor(Math.random()*7)C.Math. floor(Math.random()*8)D.Math.ceil(Math.random()*8)有一个JS数组长度为3,其中x[0]=”a”;x[1]=”b”;x[2]=”c”;如果要在该数组后添加一项( )。A.不可以的B.只要x[3]=”d”,就可以了C.应该重新定义一个新数组,其长度为4,然后循环赋值D.报错在JS语句中,var a1=10;var a2=20;alert(“a1+a2=”+a1+a2);将显示( )。A

文档评论(0)

1亿VIP精品文档

相关文档