SOURCE

console 命令行工具 X clear

                    
>
console
var ocanvas = document.getElementById("mmap");
var ctx = ocanvas.getContext("2d");

ctx.rect(0, 0, 500, 500);
ctx.fillStyle = "#002323";
ctx.fill();
<Canvas id="mmap" width="600" height="600"></Canvas>
<script src="maisn.js">
</script>

.map {
    background-color: #764527;
    border: 1px solid red;
    position: relative;
}