以下哪个方法用于返回画布上的绘制上下文对象
A: getContext
B: getElementById
C: write
D: writeln
A: getContext
B: getElementById
C: write
D: writeln
A
举一反三
- 哪个HTML5内建对象用于在画布上绘制 A: getContent B: getContext C: getGraphics D: getCanvas
- 哪个 HTML5 内建对象用于在画布上绘制? A: getContent B: getContext C: getGraphic D: getCanvas
- 哪个HTML5内建对象用于在画布上绘制图形?( ) A: getContent B: getContext C: getGraphics D: getCanvas
- 用于获取画布的渲染上下文对象的方法是( )。 A: getContent B: getContext C: getGraphics D: getCanvas
- 哪个HTML5内建对象用于在画布上绘制?
内容
- 0
canvas绘图是借助于javascript脚本通过( )方法进行图像绘制 A: getElementById() B: getContext("2d") C: fillRect( D: strokeRect()
- 1
关于document对象的常用方法,以下说法错误的有( )。 A: getElementById( ) 返回拥有指定id的第一个对象的引用 B: getElementById( ) 返回拥有指定id的对象的集合 C: getElementsByName( ) 返回拥有指定名称的对象的集合 D: write( ) 向文档写文本,HTML表达式或javascript代码
- 2
获得canvas对象的绘图上下文的方法是? A: getCanvas(); B: getGraphics(); C: getContent(); D: getContext();
- 3
下面( )不是document对象的方法 A: getElementsByTagName() B: getElementById() C: write() D: reload()
- 4
下面的方法中,()不是document对象的方法 A: createElement() B: getElementById() C: write() D: reload()