0
嘿,我已經註冊了谷歌自定義搜索和它的工作相當不錯。谷歌自定義搜索,如何運行querystring值?
所以基本上它生成了一個Javascript代碼供我使用。
我在想如何通過querystring接受一個值來讓它工作?
乾杯
嘿,我已經註冊了谷歌自定義搜索和它的工作相當不錯。谷歌自定義搜索,如何運行querystring值?
所以基本上它生成了一個Javascript代碼供我使用。
我在想如何通過querystring接受一個值來讓它工作?
乾杯
我用下面的代碼vb.net實現這一目標:
google.load('search', '1', { language: 'en' });
google.setOnLoadCallback(function() {
var customSearchControl = new google.search.CustomSearchControl('[your se code here]');
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
customSearchControl.draw('cse');
customSearchControl.execute('<%=server.htmlencode(request.querystring("searchterm"))%>');
}, true);