0
为什么我无法从此Web服务获得响应?为什么我无法从此Web服务获得响应?
$(document).ready(function() {
$.ajax({
url: "https://aip-rest.appspot.com/api/token/12416689"
}).then(function(data) {
$('.greeting-id').append(data.id);
$('.greeting-content').append(data.content);
});
});
我测试了与http://rest-service.guides.spring.io/greeting相同的代码,它的工作。
看来,在HTTPS的响应://aip-rest.appspot.com/api/token/12416689没有“id”或“content”,对吧? – Pang