标签: javascript fabricjs
答案 0 :(得分:0)
在fabric.js文档中,画布可以是serialized和deserialized:
var canvas1 = new fabric.Canvas('c'); var canvasJSON = JSON.stringify(canvas1); var canvas2 = new fabric.Canvas(); canvas2.loadFromJSON(canvasJSON)