中文
Appearance
undo
redo
无参数
无返回值
import { iDraw } from 'idraw'; const app = document.querySelector('#app'); const idraw = new iDraw(app, { // ... history: true // 开启历史记录,非必选,默认false historyLimit: true // 历史记录的限制数,非必选,默认100 }); idraw.undo() // 撤销 idraw.redo() // 重做