为什么画不出直线呢
<body>
<canvas id="canvas" width="1024" height="768"></canvas>
<script>
window.onload=function(){
var canvas=document.getElementById("canvas");
var context=canvas.getContext("2d")
context.moveTo(100,100)
context.lineTo(700,700)
context.stroke();
}
</script>
</body>