[英]W3C Throwing Error From Google API Script
This is probably incredibly simple. 这可能非常简单。 However, to recieve a high grade on my uni assignment i cant have any errors.
但是,要获得我的大学作业的高分,我不能有任何错误。 Im clueless as to why this is throwing an error considering its taken straight from Google.
考虑到直接从Google获取的原因,我对此一无所知。
This is the error w3 is showing: 这是w3显示的错误:
Error: Bad value https://maps.googleapis.com/maps/api/js?key= AIzaSyBu3MmlwvX4XDRXKNJcm1cyJRA9CtQHQy0&callback=initMap for attribute src on element script: Illegal character in query: space is not allowed.
错误:错误值https://maps.googleapis.com/maps/api/js?key= AIzaSyBu3MmlwvX4XDRXKNJcm1cyJRA9CtQHQy0&callback = initMap元素脚本上的属性src:查询中的非法字符:不允许使用空格。
From line 115, column 1;
从第115行第1列开始; to line 115, column 129
到第115行,第129列
/footer>↩↩<script async defer src="https://maps.googleapis.com/maps/api/js?key= AIzaSyBu3MmlwvX4XDRXKNJcm1cyJRA9CtQHQy0&callback=initMap"></scrip
seems you have a space between key= AIzaSyBu3MmlwvX4XDRXKNJcm1cyJRA9CtQHQy0
似乎您在
key= AIzaSyBu3MmlwvX4XDRXKNJcm1cyJRA9CtQHQy0
之间有一个空格
key= AIzaSyBu3MmlwvX4XDRXKNJcm1cyJRA9CtQHQy0
^here
try remove it 尝试将其删除
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBu3MmlwvX4XDRXKNJcm1cyJRA9CtQHQy0&callback=initMap"></script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.