单项选择题与window对象无关的属性是下列哪项:()

A.top
B.self
C.left
D.frames


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题如何在浏览器的状态栏放入一条消息:()。

A.statusbar = "put your message here"
B.window.status = "put your message here"
C.window.status("put your message here")
D.status("put your message here")

3.单项选择题与image对象不相关的事件处理是下列哪项:()。

A.onError
B.onMouseOut
C.onLoad
D.onOpen

4.单项选择题以下哪个选项中的方法全部属于window对象:()

A.alert;clear;close
B.clear;close;open
C.alert;close;confirm
D.alert;setTimeout;write

5.单项选择题在JavaScript中,下列哪段代码能够在1秒之后执行表达式expression?()

A.window.setTimeout(1000,expression);
B.window.setTimeout(expression,1);
C.window.setTimeout(1,expression);
D.window.setTimeout(expression,1000);

6.单项选择题Javascript是如何实现继承的?()

A.创建父类对象作为子类的原型(prototype)
B.使用 extends 关键子继承父类
C.创建子类对象作为父类的原型(prototype)
D.使用 class 关键子继承父类

7.单项选择题以下哪段代码不能正确创建函数show()?()

A.function show(text){ alert(text); }
B.var showFun = function show(text){ alert(text); }
C.var showFun = function(text){ alert(text); }
D.var showFun =new function("text" , "alert(text)"};

8.单项选择题以下不属于Javascript原始类型的是:()

A.string
B.number
C.function
D.boolean

9.单项选择题

考察以下程序片段:

以下选项正确的是?()

A.依次输出”张三丰学习”“百晓生移动”
B.依次输出”张三丰学习”“移动”
C.输出”张三丰学习”,之后程序出错
D.程序出错,什么都不能输出

10.单项选择题

考察以下程序片段:

以下选项正确的是?()

A.输出1
B.输出2
C.输出p
D.输出12