调用 wx.createOffscreenCanvas 报错
const canvas = wx.createOffscreenCanvas({
type: '2d',
width: 500,
height: 400
})
微信开发者工具基础版本号2.25.0
报错提示信息如下:
TypeError: wx.createOffscreenCanvas is not a function
at t.<anonymous> (index.js:1)
at l (index.js:1)
at Object.next (index.js:1)
at index.js:1
at new Promise (<anonymous>)
at r (index.js:1)
at t.saveImage (index.js:1)
at callBack (index.js:1)
at index.js:1
at s.253.l.emit (plugin.js:5)(env: Windows,mg,1.06.2401020; lib: 2.25.0)
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。