有没有啥办法 不点上面的复制 点击下面的按钮获取到我选中的文字呀

img

有没有啥办法 不点上面的复制 点击下面的按钮获取到我选中的文字呀

用代码写? onselect 事件
https://www.runoob.com/jsref/event-onselect.html
https://blog.csdn.net/weixin_44058725/article/details/125977595

在点击的时候调用 navigator.clipboard.writeText('需要复制的内容')