收藏
回答

exec函数 缺少闭合

Page({

onReady() {

this.createSelectorQuery()

.select("#target")

.node()

.exec(res => {

const node = res[0].node

node.takeSnapshot({

type: 'arraybuffer',

format: 'png',

success: (res) => {},

fail(res) {}

})

}

})

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容