【问题标题】:Bootstrap Custom Search to Search Google引导自定义搜索以搜索 Google
【发布时间】:2015-04-30 14:25:09
【问题描述】:

我在尝试让我的搜索工作时遇到了麻烦。我想让我的搜索文本框搜索谷歌,然后转到谷歌搜索显示。我根本不需要它来搜索我的网站。只需要使用我的搜索框从我的网站搜索 google。我对使用自定义搜索不是很熟悉,所以请告诉我我做错了什么。

<form class="navbar-form pull-left searchBarFix">
    <input type="text" data-provider="https://www.google.com" class="form-control" placeholder="Search Our Games..." autocomplete="on" id="searchInput">
    <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
</form>

【问题讨论】:

    标签: twitter-bootstrap google-search search-box


    【解决方案1】:

    您是否研究过 Google 搜索 API?

    API 非常强大,听起来它会完全满足您的需求。

    https://developers.google.com/web-search/docs/

    虽然该解决方案已被弃用,但您可能需要查看 Google 的自定义搜索引擎。

    https://developers.google.com/custom-search/docs/start

    【讨论】:

      猜你喜欢
      • 2019-07-17
      • 1970-01-01
      • 2018-02-10
      • 1970-01-01
      • 1970-01-01
      • 2020-02-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多