摘要: 最终图 首先 const canvas = document.getElementById('app'); const ctx = canvas.getContext('2d'); canvas.width = document.documentElement.clientWidth;//或者win 阅读全文