相关考题
-
单项选择题
在访问js对象中的方法或属性时,为了防止标识符的出现,使用什么方式访问?()
A..
B.{}
C.[]
D."" -
单项选择题
检测正则表达式是否匹配,除了有test()、match()外,还有()方法返回值也是一个数组?
A.replace()
B.exec()
C.split()
D.join() -
单项选择题
let sayString="hello hunger! How are you?"; const reg=/hello|you/g; console.log(sayString.match(reg));以上代码运行结果正确的是()
A.["hello"]
B.["you"]
C.["hello","you"]
D.null
