• 2022-05-29
    以下哪个方法用于返回画布上的绘制上下文对象
    A: getContext
    B: getElementById
    C: write
    D: writeln
  • A

    内容

    • 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()