怎么才能实现长按选中这一整段话,而且还可以移动光标,text的各种属性试了,wx.setClipboardData也用过了,还是没有达到这个效果,各位大佬有什么好办法实现这个功能吗?
这样才能实现微信那种长按复制一整行或者一整段的功能呢?Only in this way can we realize the function of long-pressing and copying a whole line or a whole paragraph?
这样才能实现微信那种长按复制一整行或者一整段的功能呢?怎么才能实现长按选中这一整段话,而且还可以移动光标,text的各种属性试了,wx.setClipboardData也用过了,还是没有达到这个效果,各位大佬有什么好办法实现这个功能吗?
How can I select the whole paragraph by long pressing, and also move the cursor and various properties of text, wx.setClipboardData Also used, or did not achieve this effect, you guys have any good way to achieve this function?
回答:
用text
text的selectable属性
https://developers.weixin.qq.com/miniprogram/dev/extended/component-plus/select-text.html