【问题标题】:Chrome App's <webview>.find method is undefinedChrome 应用的 <webview>.find 方法未定义
【发布时间】:2014-09-17 06:16:29
【问题描述】:

The document 表示 &lt;webview&gt; 标记自 Chrome 35 起具有启动页内文本搜索的功能:

<webview>.find(string searchText, FindOptions options, function callback)

...但我发现在我的环境中方法是undefined

我在 Mac OS X 10.9.4 上使用 Chrome 版本 37.0.2062.120。

我的清单中有“webview”权限,其他 webview 标记方法(如后退/转发/重新加载/clearData)工作正常。

我还发现我的 webview 缺少一些方法,例如 getZoom/setZoom(应该从 Chrome 36 开始可用)。

我是否需要在清单上获得特殊权限才能启用这些功能,或者这是文档方面的错误?

【问题讨论】:

    标签: google-chrome-extension google-chrome-app


    【解决方案1】:

    我会说这是一个文档问题。

    webview.find 尚未进入稳定频道(请参阅https://codereview.chromium.org/414803003

    您可能想尝试使用 Chrome Canary (http://chrome.com/canary),因为它可以在那里工作。

    【讨论】:

    • 感谢您的信息!我现在先试试 Canary 看看它是如何工作的,然后等到稳定频道...
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-26
    • 1970-01-01
    • 2020-04-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多