為什么第二個圓的顏色顯示不出來
請問我第二個圓的填充色怎么顯示不出來,代碼是哪里出錯了,謝謝
?window.onload = function(){
? ? ? ? var canvas = document.getElementById("cnavas");
? ? ? ? var cxt = canvas.getContext('2d');
? ? ? ? canvas.width =440;
? ? ? ? canvas.height =90;
????????cxt.strokeStyle = "#ecebeb";
????????cxt.moveTo(40,42);
????????cxt.lineTo(220,42);
????????cxt.lineWidth = 5;
????????cxt.stroke();
????????cxt.beginPath();
????????cxt.fillstyle = "blue";
????????cxt.arc(45, 45, 25, 0, 2*Math.PI, false);
????????cxt.fill();
????????cxt.closePath();
}
2016-10-13
fillStyle 的 S要大寫。