题目内容

下列程序段的输出结果是:var reg=/\w/;var str="你好";document.write(reg.exec(str));

A. 你
B. 好
C. 你好
D. null

查看答案
更多问题

调用location对象的port属性,返回的结果可能是下面的?

A. content
B. 8080
C. http
D. q=javascript

调用history.go(-1),那么页面发生的变化是?

A. 后退到前一个网址
B. 后退到打开的第一个网址
C. 前进到下面一个网址
D. 页面保持不变

在JavaScript中,使用event对象的什么属性判断输入的键值

A. key
B. keyValue
C. keyCode
D. keyButton

实现每过一秒钟更新时间,setInterval的时间参数应该设置为?

A. 1
B. 0.1
C. 1000
D. 100

答案查题题库