📅  最后修改于: 2022-03-11 15:03:23.178000             🧑  作者: Mango
fabric.Image.prototype.toObject = (function(toObject) {
return function() {
return fabric.util.object.extend(toObject.call(this), {
src: this.toDataURL()
});
};
})(fabric.Image.prototype.toObject);