navigator.clipboard.readText()
.then(text => {
// `text` contains the text read from the clipboard
})
.catch(err => {
// maybe user didn't grant access to read from clipboard
console.log('Something went wrong', err);
});
我需要从剪贴板读取按钮单击角度
如何做到这一点?