微信小程序里自定義組件,canvas組件沒有效果,請問有沒有人遇到過這個問題? ready(){ const ctx = wx.createCanvasContext('back-canvas') ctx.setFillStyle('red') ctx.fillRect(10, 10, 150, 75) ctx.draw(); },<canvas class='ca' canvas-id="back-canvas" style="width:200px;height:200px;"></canvas>
微信小程序里自定義組件,canvas組件沒有效果
慕桂英546537
2019-03-29 23:19:21