国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

???? ????? ????.

????? ????. context.fillRect(x,y,width,height) ????Rect(x,y,width,height)

? ?? ??? ?? ? ??? ??? ? ????. ??? ???? ??????.) > ??: ???? ??

HTML ??? ???, ??? ??? ??

    ?? Node.js, ??? DOM ?? ????
  • ??? ??? Dom ??? ?? ???? ????
  • ??? ??? ? ?? ??
  • ???? ???? ????? ????
  • ????
???? ??
||
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <canvas id="demoCanvas" width="500" height="500"> <p>請使用支持HTML5的瀏覽器查看本實例</p> </canvas> <!---下面將演示一種繪制矩形的demo---> <script type="text/javascript"> //第一步:獲取canvas元素 var canvasDom = document.getElementById("demoCanvas"); //第二步:獲取上下文 var context = canvasDom.getContext('2d'); //第三步:指定繪制線樣式、顏色 context.strokeStyle = "red"; //第四步:繪制矩形,只有線。內(nèi)容是空的 context.strokeRect(10, 10, 190, 100); //以下演示填充矩形。 context.fillStyle = "blue"; context.fillRect(110,110,100,100); </script> </body> </html>