下面程序段的输出结果是var reg=/[^ho]/var str="how are you";document.write(reg.exec(str));
查看答案
下列程序段的输出结果是: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