我在GoDaddy Linux服务器上托管了Laravel脚本。 它包括一个非实时的聊天系统。 我被告知要从服务器放置主机和端口,并且聊天系统将是实时的。 我在根目录中使用ssh命令从Putty安装了节点js。 我需要运行位于public_html / js / index.js的index.js ...
提示:本站收集StackOverFlow近2千万问答,支持中英文搜索,鼠标放在语句上弹窗显示对应的参考中文或英文, 本站还提供 中文繁体 英文版本 中英对照 版本,有任何建议请联系yoyou2525@163.com。
我正在尝试在html页面上显示google maps javascript api,但未显示,并给我错误“无法加载资源net :: err_timed_out”我在google cloud平台上生成了api密钥并将其放在脚本中但是仍然无法工作。
<!DOCTYPE html>
<html>
<head>
<style>
/* Set the size of the div element that contains the map */
#map {
height: 400px; /* The height is 400 pixels */
width: 100%; /* The width is the width of the web page */
}
</style>
<!--The div element for the map -->
<div id="map" </div>
<script>
// Initialize and add the map
function initMap() {
/ The location
var location = {lat: 36.512483,lng: -115.064985};
// The map, centered at location
var map = new google.maps.Map(
document.getElementById('map'), {zoom: 8, center: location});
// The marker, positioned at location
var marker = new google.maps.Marker({position: location, map: map});
}
</script>
<!--Load the API from the specified URL
* The async attribute allows the browser to render the page while the API loads
* The key parameter will contain your own API key (which is not needed for this tutorial)
* The callback parameter executes the initMap() function
-->
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAnW5hF37VGcliSVTP7NRMS2Mz8kGORvEQ&callback=initMap" ></script>
</body>
</html>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.