为什么我总是导不出第一道线,是代码输错了吗
<body>
<canvas id="canvas" width="1024" height="768"style="border:1px solid#aaa:display:block:margin:50px auto;">
</canvas>
<script>
window.onload=function(){
var canvas=document.getElementById ("canvas");
canvas.width=1024;
canvas.height=768;
var context=canvas.getContext("2d")
context.moveTo(100,100)
context.lineTO(700,700)
context.stroke()
}
</script>
</body>