代码显示问题
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>动画</title>
</head>
<body>
<canvas id="canvas" style="border:10px solid blue;display:block;margin:50px auto;"></canvas>
<script>
window.onload=function(){
var canvas=document.getElementById("canvas");
canvas.width=2014;
canvas.height=768;
var context=canvas.getContext("2d")
context.moveTo(100,100)
context.LineTo(700,700)
context.stroke()
}
</script>
</body>
</html>
我照着敲的,为什么没有直线