如题:
代码如下:
onReady() {
const query = wx.createSelectorQuery()
query.select('#myCanvas')
.fields({
node: true,
size: true
})
.exec((res) => {
const canvas = res[0].node
const ctx = canvas.getContext('2d');
const dpr = wx.getSystemInfoSync().pixelRatio;
canvas.width = res[0].width * dpr
canvas.height = res[0].height * dpr
ctx.stroke(new Path2D('M 746.4449063453155 396.3271527458 A 252.8 252.8 -180 1 0 253.55509365468453 396.3271527458M 695.2461691253377 456.9152 A 291.8446 291.8446 -180 0 0 746.4449063453155 396.3271527458M 253.55509365468453 396.3271527458 A 291.8446 291.8446 -180 0 0 304.75383087466224 456.9152'))
})
},
你好,无效是指?