Taro: canvas 绘制无效

Created on 10 Oct 2018  ·  4Comments  ·  Source: NervJS/taro

小程序版:
image
Taro 版:
image
用原生的是OK的,但是 改成 Taro 就无效了!

Most helpful comment

this.$scope,看文档要仔细啊
https://nervjs.github.io/taro/docs/wx-relations.html

All 4 comments

createCanvasContext 有两个参数,如果你在组件里使用,第二个参数必传
https://developers.weixin.qq.com/miniprogram/dev/api/canvas/wx.createCanvasContext.html

image
这样加了也无效
image

this.$scope,看文档要仔细啊
https://nervjs.github.io/taro/docs/wx-relations.html

给了我继续 玩 Taro 的信心!

Was this page helpful?
0 / 5 - 0 ratings