先说下canvas绘图的基本方法,如下:const myCanvas = document.createElement('canvas');myCanvas.width = 400;myCanvas.height = 4