Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
clipboard-all
Advanced tools
Readme
可复制图片、文字到粘贴板,将你想复制的模块全部复制 轻巧便捷、功能强大
#### 安装
yarn add clipboard-all --save
或者
npm install clipboard-all --save
import clipboard from 'clipboard-all'
*[·-·]: 元素可以通过ref或者jquery的$(.className)等方式获取均可
let element = this.refs[refName]
let res = await clipboard(element)
if(res){ console.log('复制成功') }
引入后可以调用函数,通过传入元素的方式,可以使用vue的获取元素方式,也可使用jQuery的获取元素的方式,调用后即可复制元素中的所有文字和图片内容
可以是一个大的父元素,就会复制父元素中的所有的文字和图片
强大的功能,快来尝试吧
FAQs
强大的复制功能, 可以复制图片和文字
The npm package clipboard-all receives a total of 8 weekly downloads. As such, clipboard-all popularity was classified as not popular.
We found that clipboard-all demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.