剪贴板 wx.setClipboardData 复制成功后 toast 能隐藏吗?

小程序 文章 2020-08-06 19:41 1075 0 全屏看文

AI助手支持GPT4.0

剪贴板 wx.setClipboardData 复制成功后 toast 能隐藏吗?Can the toast be hidden after the clipboard wx.setClipboardData is copied successfully?

剪贴板 wx.setClipboardData 复制成功后 toast 能隐藏吗?

使用 wx.setClipboardData 设置系统剪贴板的内容。调用成功后,会弹出 toast 提示"内容已复制",持续 1.5s。

复制到剪贴板成功后,添加 wx.hideToast() 也不起作用,会闪现一下

有没有办法不显示 toast?

或者, 不使用小程序提供的api,能实现复制功能吗?

use wx.setClipboardData Sets the contents of the system clipboard. After the call is successful, a toast prompt "content copied" will pop up, lasting for 1.5s. After successfully copying to the clipboard, add wx.hideToast () doesn't work. It will flash. Is there any way to not display toast? Or, can the replication function be implemented without using the API provided by the applet?

回答:

Mixchain 俞哄哄🤳📲:

是不可以的

https://developers.weixin.qq.com/community/develop/doc/00064c689c80c83ab5966603e5b401



若有帮助请帮忙点个"有用"谢谢👇👇


苏军:

官方不允许静默复制内容,无法隐藏。

鲤子:

不可以~

Distance:

应该不行。

SL:好吧。那能不用微信api,实现复制功能的方法吗?
Distance:不能。

-EOF-

AI助手支持GPT4.0