参考:https://www.runoob.com/html/html5-webstorage.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>脚本</title>
<style type="text/css">
#div1 {
width: 350px;
height: 50px;
padding: 10px;
border: 1px solid #aaaaaa;
}
</style>
</head>
<body>
<canvas ID="myCanvas" width="820" height="620" style="background-color: blanchedalmond;">
你的浏览器不支持
</canvas>
<script type="text/javascript">
var key = "saveKey";
function angle2radian(angle) {
return angle / 180 * Math.PI;
}
function drawNetLines() {
var c = document.getElementById('