📅  最后修改于: 2022-03-11 15:03:44.797000             🧑  作者: Mango
var canvas = document.getElementById('myCanvas');
var context = canvas.getContext('2d');
context.clearRect(0, 0, canvas.width, canvas.height);