我如何能输入一个占位符或值 来支付我的 Google 自定义搜索框的版本?
我试图利用谷歌提供的正常的 API 脚本插件如下:
<h5>SEARCH ON THIS SITE</h5></h6>
<div id="cse-search-form" style="width: 100%;">Loading ...</div>
<script type="text/javascript">
google.load( search , 1 , {language : en });
google.setOnLoadCallback(function() {
var customSearchOptions = {};
var imageSearchOptions = {};
imageSearchOptions[ layout ] = google.search.ImageSearch.LAYOUT_CLASSIC;
customSearchOptions[ enableImageSearch ] = true;
customSearchOptions[ imageSearchOptions ] = imageSearchOptions;
var customSearchControl = new google.search.CustomSearchControl(
312312312313123321312231:9cjokpdtmuaey , customSearchOptions);
customSearchControl.setResultSetSize(
google.search.Search.FILTERED_CSE_RESULTSET);
var options = new google.search.DrawOptions();
options.enableSearchboxOnly("search.htm");
customSearchControl.draw( cse-search-form , options);
}, true);
</script>
我的密码有明显错误吗?