收藏
回答

微信小程序errMsg: "takeSnapshot:fail webview renderer?

<snapshot id="target">
				<view>content</view>
				<image style="width: 100rpx;height: 100rpx;" src="../../static/logo.png" mode=""></image>
			</snapshot>

this.createSelectorQuery()
				.select("#target")
				.node()
				.exec(res => {
					const node = res[0].node
					node.takeSnapshot({
						type: 'arraybuffer',
						format: 'png',
						success: (res) => {
							console.log('res',res);
						},
						fail(res) {
							console.log('res',res);
						}
					})
				})

"rendererOptions": {

"skyline": {

"defaultDisplayBlock":true,

"disableABTest": true,

// 基础库最低版本

"sdkVersionBegin": "3.0.1",

// 填最大值,否则之后的新版本会不生效

"sdkVersionEnd": "15.255.255"

}

},

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

1 个回答

  • 社区技术运营专员-Jahozheng
    社区技术运营专员-Jahozheng
    2024-07-02

    请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2024-07-02
    有用
    回复
登录 后发表内容