• <bdo id='M388B'></bdo><ul id='M388B'></ul>
    <tfoot id='M388B'></tfoot>

    <small id='M388B'></small><noframes id='M388B'>

    <legend id='M388B'><style id='M388B'><dir id='M388B'><q id='M388B'></q></dir></style></legend>
    1. <i id='M388B'><tr id='M388B'><dt id='M388B'><q id='M388B'><span id='M388B'><b id='M388B'><form id='M388B'><ins id='M388B'></ins><ul id='M388B'></ul><sub id='M388B'></sub></form><legend id='M388B'></legend><bdo id='M388B'><pre id='M388B'><center id='M388B'></center></pre></bdo></b><th id='M388B'></th></span></q></dt></tr></i><div id='M388B'><tfoot id='M388B'></tfoot><dl id='M388B'><fieldset id='M388B'></fieldset></dl></div>

      iPhone上的WebKit:是否可以使用JavaScript将文本复制到剪贴板

      WebKit on th iPhone: is it possible to copy text to the clipboad with JavaScript(iPhone上的WebKit:是否可以使用JavaScript将文本复制到剪贴板)
          <tbody id='UcAYE'></tbody>

            <bdo id='UcAYE'></bdo><ul id='UcAYE'></ul>

              <small id='UcAYE'></small><noframes id='UcAYE'>

            1. <i id='UcAYE'><tr id='UcAYE'><dt id='UcAYE'><q id='UcAYE'><span id='UcAYE'><b id='UcAYE'><form id='UcAYE'><ins id='UcAYE'></ins><ul id='UcAYE'></ul><sub id='UcAYE'></sub></form><legend id='UcAYE'></legend><bdo id='UcAYE'><pre id='UcAYE'><center id='UcAYE'></center></pre></bdo></b><th id='UcAYE'></th></span></q></dt></tr></i><div id='UcAYE'><tfoot id='UcAYE'></tfoot><dl id='UcAYE'><fieldset id='UcAYE'></fieldset></dl></div>
              <tfoot id='UcAYE'></tfoot>

              <legend id='UcAYE'><style id='UcAYE'><dir id='UcAYE'><q id='UcAYE'></q></dir></style></legend>

              1. 本文介绍了iPhone上的WebKit:是否可以使用JavaScript将文本复制到剪贴板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                iPhone 3.0 软件添加了复制/粘贴功能,原生应用程序可以通过编程方式将内容复制到剪贴板.是否可以从 iPhone 上 Safari 中运行的 JavaScript 代码执行相同操作,即将文本复制到剪贴板?

                The iPhone 3.0 software added copy/paste, and native application can programmatically copy content to the clipboard. Is it possible to do the same, i.e. copy text to the clipboard, from JavaScript code running inside Safari on the iPhone?

                推荐答案

                在桌面上,网站中的复制/粘贴通常似乎使用嵌入式 Flash gizmo;显然在 iPhone 上这既不可能也不可取.您可以尝试在 Nick Dalton 的演讲 webView:shouldStartLoadWithRequest:navigationType: 技术之一>这里从您的网络视图中提取信息,然后调用适当的 UIPasteboard 方法.

                On the desktop, copy/paste in websites typically seems to use an embedded Flash gizmo; obviously on the iPhone that's neither possible nor desirable. You might try one of the webView:shouldStartLoadWithRequest:navigationType: techniques discussed in Nick Dalton's presentation here to pull information out of your web view, then call an appropriate UIPasteboard method.

                我很抱歉——没有正确阅读帖子.如果它在主 Safari 应用程序中,而不是您控制的 UIWebView 应用程序中,我认为没有办法强制复制.Glyphboard(网站只能在非桌面版 Safari 中工作)是一个可能正在制作的网站示例使用此功能(如果存在).

                edit: My apologies—didn't read the post correctly. If it's in the main Safari app as opposed to one whose UIWebView you control, I don't think there is a way to force a copy. Glyphboard (site only works from within non-desktop Safari) is an example of a site that would probably be making use of this functionality if it existed.

                这篇关于iPhone上的WebKit:是否可以使用JavaScript将文本复制到剪贴板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                what#39;s property copy means in Cocoa#39;s Framework?(like UITabBar#39;s items property)(Cocoa 框架中的属性副本是什么意思?(如 UITabBar 的 items 属性))
                Sqlite database not copied from asset folder Android(Sqlite 数据库未从资产文件夹 Android 复制)
                SQLite Database Copy Appears Corrupted When Generated by Device and not Emulator(SQLite 数据库副本在由设备而不是模拟器生成时出现损坏)
                Difference between retain and copy?(保留和复制的区别?)
                Can`t copy file from bundle to documents directory in iOS(无法将文件从捆绑包复制到 iOS 中的文档目录)
                How to copy a quot;Dictionaryquot; in Swift?(如何复制“字典在斯威夫特?)
                      <i id='Wxf8o'><tr id='Wxf8o'><dt id='Wxf8o'><q id='Wxf8o'><span id='Wxf8o'><b id='Wxf8o'><form id='Wxf8o'><ins id='Wxf8o'></ins><ul id='Wxf8o'></ul><sub id='Wxf8o'></sub></form><legend id='Wxf8o'></legend><bdo id='Wxf8o'><pre id='Wxf8o'><center id='Wxf8o'></center></pre></bdo></b><th id='Wxf8o'></th></span></q></dt></tr></i><div id='Wxf8o'><tfoot id='Wxf8o'></tfoot><dl id='Wxf8o'><fieldset id='Wxf8o'></fieldset></dl></div>
                    1. <tfoot id='Wxf8o'></tfoot>
                        <tbody id='Wxf8o'></tbody>
                        <bdo id='Wxf8o'></bdo><ul id='Wxf8o'></ul>

                      • <legend id='Wxf8o'><style id='Wxf8o'><dir id='Wxf8o'><q id='Wxf8o'></q></dir></style></legend>

                          <small id='Wxf8o'></small><noframes id='Wxf8o'>