window.navigator.clipboardDecember 26, 2022 · One min readJeffreyWeb Developer原生提供的复制文本 apiwindow.navigator.clipboard.writeText('test').then((_res) => { //})