javascript中用户自定义函数使用的关键字是?
A. new
B. this
C. function
D. fn
查看答案
document.write(Number(new String("11aa"))+""),程序运行结果是?
A. 11
B. aa
C. 11aa
D. NaN
下列哪个表达式产生0-7之间(含0,7)的随机整数
A. Math.floor(Math.random()*6)
B. Math.floor(Math.random()*7)
C. Math.floor(Math.random()*8)
D. Math.ceil(Math.random()*7)
function checkNumber(obj){ var reg = /^[0-9]+$/; if(obj!=""&&!reg.test(obj)){ return false; } } ,以下输入,哪个是符合要求的?
A
B. a
C. N
D. 6
var patt1=new RegExp("e");document.write(patt1.test("The best things in life are free"));程序运行结果是
A. true
B. 5
C. 19
D. 22