题目内容

下面程序段的输入结果是var reg=/a{2,}/;var str="how are you";document.write(reg.test(str));

A. true
B. false
C. a
D. are

查看答案
更多问题

下列程序段的输出结果是:var reg=/^h/;var str="show are you";document.write(reg.exec(str));

A. true
B. false
C. null
D. h

下面程序段的输出结果是var reg=/[^ho]/var str="how are you";document.write(reg.exec(str));

A. h
B. o
C. w
D. null

下列程序段的输出结果是: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

答案查题题库