剪切板的问题
我按照老师您的方法做了:
js代码:
copy:function(){
wx.setClipboardData({
data: 'data',
success: function (res) {
wx.showModal({
title: '复制成功',
content: '内容已经复制成功',
})
}
})
}
wxml代码:
<button bindtap='copy'>复制内容</button>
问题:
复制内容不起作用,基础库版本是最高版本
调试问题:
VM7597:1 Do not have copy handler in current page: pages/index/index. Please make sure that copy handler has been defined in pages/index/index, or pages/index/index has been added into app.json