我有一个使用这个嵌入的谷歌 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 输入中获取搜索词。
我怎样才能做到这一点?