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
在Javascript中,定义函数时可以使用()个参数
A. 0
B. 1
C. 2
D. 任意