每页的结果数超出范围 Source paramter is out of limit
在处理搜索之前,要调用searchvalidation类来确保用户为每页的结果数目输入了一个有效值。
Before processing the search, the SearchValidation class is called to ensure that the user entered a valid value for the number of results per page value.
我们的搜索表单会包含这三个字段用于一个可定制的搜索:查询,返回结果的最大个数,结果页面中每页显示的个数。
Our search form will include three fields for a customizable search: the query, the maximum number of results to return, and the number of entries to display per result page.
你就可以指定安全搜索级别、设置自己的位置,选择自己的语言以及选择每页显示的搜素结果数量。
You can then specify the Safe search level, set your location, choose your language, and choose the number of search results to display on a page.
应用推荐