单项选择题
var p = 200;
function test(){
alert(p);
var p = 20;
alert(p);
}
test();
alert(p);打印的结果是()
A.200,20,20
B.200,20,200
C.undefined,20,200
点击查看答案
相关考题
-
单项选择题
var p = 200; function test(){ alert(p); p = 20; alert(p); } test(); alert(p);弹出的结果是()
A.200,200,20
B.200,200,200
C.200,20,20
D.20200200 -
单项选择题
var fun = function fn(){ return;alert(12); }; console.log(fun());打印结果是()
A.弹出12
B.程序报错
C.null
D.undefined -
单项选择题
在函数内部阻止浏览器默认事件的方法,正确的是()
A.event.stop()
B.event.preventDeafult()
C.event.stopPropagation()
D.event.prevent()
