【发布时间】:2010-12-14 14:08:42
【问题描述】:
我有一个使用这个嵌入的 Google CSE:
google.load('search', '1', {language : 'en', style : google.loader.themes.SHINY});
google.setOnLoadCallback(function() {
var options = {};
options[google.search.Search.RESTRICT_EXTENDED_ARGS] = {'sort': 'date'};
var customSearchControl = new google.search.CustomSearchControl('',options);
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
customSearchControl.draw('cse');
我想确定/显示用户搜索的搜索词,但在用户点击“搜索”后,我似乎无法从 Google CSE 输入中获取搜索词。
我该怎么做?
【问题讨论】:
标签: google-search google-custom-search