1

我在尝试让我的搜索工作时遇到了麻烦。我只想让我的搜索文本框搜索 google,然后转到 google 搜索显示。我根本不需要它来搜索我的网站。只需要使用我的搜索框从我的网站搜索 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>
4

1 回答 1

0

您是否查看过 Google 搜索 API?

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

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

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

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

于 2015-04-30T06:25:09.230 回答