Canvas clip安卓无效
const app = getApp() var ctx = null Page({ data: { }, onLoad: function () { ctx = wx.createCanvasContext( 'canvas' ) }, doclip: function (e) { ctx.save() ctx.beginPath() ctx.arc(40, 40, 30, 0, 2 * Math.PI) ctx.clip() ctx.drawImage( 'https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKsBRgibKxD2MibPnRHwGDsqzIia46drCu8EFHKPksufzUrIypBWxZ3xM6c7S7nRcicA4qwTAicN704thA/132' , 10, 10, 60, 60) ctx.restore() ctx.draw( true ) } }) |
上面的代码,开发工具正常,安卓手机没有任何反应