我是使用Dreamweaver構建網站的相對新手。我整合了Google Custom Search,但無法在「實時檢視」或任何瀏覽器中預覽。當我將頁面上傳到服務器時,它工作正常。這裏是代碼...Google Custom Search will not preview
<div id="cse" style="width: 100%;">Loading</div>
<script src="//www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '1', {language : 'en', style : google.loader.themes.ESPRESSO});
google.setOnLoadCallback(function() {
var customSearchControl = new google.search.CustomSearchControl('015741423371300019115:mbkcgdyu4bo');
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
customSearchControl.draw('cse');
}, true);
</script>
任何建議如何,我可以預覽它?
感謝