Andrew Clint
Andrew Clint
>  转义下就行 >  转义下就行 请问你小程序真机这样可以吗?会报这个错误吗?我像你这样改了下,但是真机点击抽奖时报错: height@https://lib/WAServiceMainContext.js:1:1056928 get@[native code] @https://usr//app-service.js:4568:26155 @https://usr//app-service.js:4598:11209 @https://usr//app-service.js:4598:19298 forEach@[native code] @https://usr//app-service.js:4598:19216 forEach@[native code] @https://usr//app-service.js:4598:18654 @https://usr//app-service.js:4598:22390 @https://usr//app-service.js:4598:21580 play@https://usr//app-service.js:5135:3057 play@[native code] r@https://usr//pages/my/app-service.js:3425:515 so@https://usr//app-service.js:4568:36416 fo@https://usr//app-service.js:4568:36500 e@https://usr//app-service.js:4568:77048 @https://lib/WASubContext.js:1:356563 @https://lib/WASubContext.js:1:207597...
It is already June 15th, and the latest version 2.0.21 still has this problem.
解决了吗
> 已解决,不要用ref定义全局的canvas,解析会报错canvasToTempFilePath:fail Cannot read property 'width' of undefined, > > 直接 let canvas = null; @GeniusJerry 这个不是引用的插件吗?在哪里定义?改插件源码吗?