html2wxml转化html网页后文章主体是shadow-root元素,不能获取dataset?
/**复制链接 */
wxmlTagATap(e) {
var that=this
var href = e.target.dataset.src
console.log('herf' +href)
wx.setClipboardData({
data: href,
success() {
wx.hideToast();
wx.showToast({
title: '在游览器打开',
image: "/pages/images/复制链接.png",
mask: true,
duration: 1500
});
}
})
},