this.ctx = uni.createCanvasContext('canvasdrawer', this)
- 发布:2020-09-03 09:44
- 更新:2020-10-26 15:45
- 阅读:1734
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 1
HBuilderX类型: 正式
HBuilderX版本号: 2.7.14
第三方开发者工具版本号: 1.03.2008272
基础库版本号: 2.8.0
项目创建方式: HBuilderX
示例代码:
操作步骤:
使用这段语法就会报错
使用这段语法就会报错
预期结果:
不报错,正常获取
不报错,正常获取
实际结果:
报错
报错
bug描述:
canvas生成图片,this.ctx = uni.createCanvasContext('canvasdrawer', this)语法报错。
1***@qq.com - 是心跳吗
我也会报uni.createCanvasContext('abowcanvas',_this)自定义组件会报Property or method "toJSON" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.
1***@qq.com - 是心跳吗
我也会报uni.createCanvasContext('abowcanvas',_this)自定义组件会报Property or method "toJSON" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.