使用iPad上的javascript复制到剪贴板 [英] Copy to clipboard using javascript on the iPad

查看:279
本文介绍了使用iPad上的javascript复制到剪贴板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法使用javascript将文本复制到iPad中的剪贴板(即 - 不使用原生选择菜单)?

Is there a way to copy text to the clipboard in iPad using javascript (ie - not using the native selection menu)?

添加信息 -
我不介意它是否需要用户操作(即 - 单击)来触发它。我知道这个问题存在很多安全问题。这只是为了验证没有标准解决方案。

Adding info - I don't mind if it requires a user action (ie - click) to trigger it. I know there are a lot of security concerns over this issue. This is just to verify there is no standard solution for this.

推荐答案

可能不可能......这是有道理的,想象一下安全问题可能会涉及。这是 a类似的问题

Possibly impossible… which makes sense, imagine the security issues that could be involved. Here’s a similar question.

即使像ZeroClipboard这样的闪存解决方案也只能在用户点击事件触发时复制到剪贴板。 (不是说它会在iOS上运行)

Even a flash solution like ZeroClipboard can only copy to clipboard if triggered by a users click event. (Not saying it would run in iOS)

这篇关于使用iPad上的javascript复制到剪贴板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆