簡介
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
歡迎!本教學課程將協助您在幾分鐘內建立自訂搜尋。本教學課程說明如何使用預先定義的 JavaScript 小工具,實作簡單的程式化搜尋引擎。如要更精細地控制搜尋結果,請參閱開發人員指南中的 JSON 和 XML API。
在本教學課程中,您會瞭解如何:
- 建立簡單的程式化搜尋引擎
- 在您的網頁上導入搜尋框
- 新增功能至搜尋框
- 自訂搜尋結果的外觀和風格
完成本教學課程後,您會使用免費版本的程式化搜尋引擎,在網站上導入搜尋功能,搜尋預先定義的網站組合。
下一步...
首先,您必須建立程式化搜尋引擎的執行個體。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eThis tutorial provides a step-by-step guide to implementing a basic Programmable Search Engine using a pre-built JavaScript widget.\u003c/p\u003e\n"],["\u003cp\u003eYou will learn how to build a search engine, integrate it into your webpage, enhance its functionality, and customize its appearance.\u003c/p\u003e\n"],["\u003cp\u003eUpon completion, you will have a functional search feature on your website, searching across a predefined set of websites using the free version of Programmable Search Engine.\u003c/p\u003e\n"],["\u003cp\u003eFor advanced customization and control over search results, refer to the JSON and XML API documentation in the Developer Guide.\u003c/p\u003e\n"]]],[],null,["# Introduction\n\nWelcome! This tutorial will help you create a customized search in just a few\nminutes. This tutorial explains how to implement a simple Programmable Search Engine\nusing a predefined javascript widget. For more fine-grained control over search\nresults, see JSON and XML API in the\n[Developer Guide](/custom-search/v1/overview).\n\nIn this tutorial, you will learn how to:\n\n- build a simple Programmable Search Engine\n- implement a search box on your page\n- add features to the search box\n- customize the look and feel of your search results\n\nBy the end of the tutorial, you will have implemented a search feature on a website, searching a predefined set of sites, using the free version of Programmable Search Engine.\n\nNext...\n-------\n\nTo get started, you need to [create an instance of a Programmable Search Engine](/custom-search/docs/tutorial/creatingcse)."]]