'''
var apiKey =“ 54df40e238084fbf095d3540271e48a0”;var URL =“ api.openweathermap.org/data/2.5/weather?q=London&appid =” + apiKey;
$(document).ready(function(){
$.getJSON(URL,function(data){ console.log(data); })
});'''
URL错误,您需要执行以下操作。