<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("search", "1");
</script>
</head>
<body>
<h1></h1>
<div>
<script>
(function() {
var cx = 'SECRET';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//www.google.com/cse/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
</div>
</body>
GET https://www.google.com/uds/?file=ads&v=3&packages=search&async=2 jsapi:21 google。(匿名函数).djsapi:27(匿名函数)jsapi:18(匿名函数)jsapi?autoload = {&#34; modules&#34;%3A [{ &#34;名称&#34;%3A&#34;搜索&#34;%2C&#34;版本&#34;%3A&#34; 1.0&#34;%2C&#34;回调&#34;%3A&#34; __gcse.scb&#34;%2C&#34; ...:41(匿名函数)
我上面有我的代码。我在控制台中收到以下错误消息。我收到的搜索结果很好,但错误是在我的网站上造成了其他问题。你知道造成这种情况的原因吗?
谢谢!