Laravel News Feed JSON 如何在本地读取?
我使用 jQuery 读取 Laravel News Feed JSON,报错 Uncaught SyntaxError: Unexpected token :
,我把 JSON 数据格式化是没有问题的?
<script type="text/javascript" src="https://unpkg.com/jquery@3.2.1"></script>
<script>
$.getJSON('https://laravel-news.com/feed/json?callback=?')
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log('error!');
});
</script>
求解答啊~