为什么我写的js没反应呢
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<canvas id="canvas" width="1024" height="1080" style="border: 1px solid #aaa;display: block; margin: 50px auto; ">
</canvas>
<script>
window.onload = function(){
var canvas = docunent.getElementById("canvas");
var context = canvas.getContext("2d");
context.moveTo(100,100);
context.lineTo(700,700);
context.stroke();
}
</script>
</body>
</html>