移动端浏览器 - 移动端怎么使用javascript点击复制一段文字
巴扎黑
巴扎黑 2017-04-10 12:47:27
0
2
526

移动端怎么使用javascript点击复制一段文字?

巴扎黑
巴扎黑

모든 응답(2)
黄舟

目前不能,且w3c不打算制定这样的API

  1. Other security and privacy considerations Enabling authors to change what is copied by a user, or to make an automated copy of something that was never selected and allowing unrestricted calls to paste information can raise various security and privacy concerns. An example scenario of a problem is where a user selects a link and copies it, but a different link is copied to the clipboard. The effect of this can range from an unexpected result on pasting to an attempted "phishing" attack.

http://www.w3.org/TR/clipboard-apis/#other-security-and-privacy-considerations

Peter_Zhu

html5 clipboard api http://www.w3.org/TR/clipboard-apis/

최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿