点击按钮复制内容
1 let that = this; 2 dd.setClipboard({ 3 text: app.globaldata.appletsCode, //复制内容 4 success(res){ 5 dd.getClipboard({ 6 success: (res) => { 7 dd.showToast({ 8 type:"success", 9 content: '复制成功' 10 }) 11 }, 12 }); 13 }