javascript - html5移动开发,复制到剪贴板怎么实现?

WBOY
Release: 2016-06-06 20:32:24
Original
1068 people have browsed it

我尝试过将文本prompt不行,里面没有内容,还尝试了点击弹出窗口,将文本放到textarea里面还是不行。
也试了 ZeroClipboard 这个jquery插件。但是使用的是flash。好像手机浏览器不支持。

回复内容:

我尝试过将文本prompt不行,里面没有内容,还尝试了点击弹出窗口,将文本放到textarea里面还是不行。
也试了 ZeroClipboard 这个jquery插件。但是使用的是flash。好像手机浏览器不支持。

https://codedump.io/share/5RqDCPAUEq0e/1/click-button-copy-to-clipboard-using-jquery

这个方法 是绕了 一下,但是 iphone上就是不支持 flash 没有办法。。

黏贴复制,并不是html5的新技术,可以采用js来实现:
http://hubowei1.iteye.com/blog/1742462

https://github.com/zeroclipboard/zeroclipboard

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!