下面这段代码输出的是什么( ) var msg="hello"; for(var i=0;i < 10; i ++){ var msg='hello'+i*2+i;}alert(msg)
A. hello
B. hello189
C. hello30
D. hello27
查看答案
以下选项中描述Object错误的是( )
A. 创建对象是只可以用var obj={}来创建
B. 可以在对象中定义函数
C. 对象中的this指的是对象本身
D. 在对象外,可以使用对象调用对象中的函数
下面代码输出正确的是( ) parseInt(true)parseFloat(null)Number(null)
A. 1, 0, 0
B. 1, 0, NaN
C. NaN, NaN, 0
D. undefined
www代表什么( )。
A. 是协议
B. 万维网
C. W3C
D. 以上说法都不正确
在一个属性名为box的div中的ul标签,如何选择偶数项的li背景颜色为red,下列代码输入正确的是( )
A. .box ul li nth-child(0,2,4){background-color:red;}
B. .box ul li nth-child(2n){background-color:red;}
C. .box ul li:nth-child(0,2,4){background-color:red;}
D. .box ul li:nth-child(2n){background-color:red;}