小编edt*_*ead的帖子

在Aurelia.io示例中读取json时出错

我正在通过添加自定义模块来扩展aurelia的入门应用程序.我在阅读json时遇到错误"Uncaught SyntaxError:Unexpected token:".但是json验证器没有发现任何错误.

这是我的json { "news": [ { "title": "Lorem Ipsum is simply dummy text", "type": "news", "tags": [ "news", "fish", "loremipsumdolor" ], "text": "Lorem Ipsum is simply dummy text of the printing and typesetting industry." }, { "title": "Lorem Ipsum", "type": "news", "tags": [ "news", "fish" ], "text": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s." } ] }

这是我的模块试图加载json(基本上它是来自flickr.js的复制粘贴,可以在示例代码中找到)`import …

javascript json jsonp aurelia

2
推荐指数
1
解决办法
3306
查看次数

标签 统计

aurelia ×1

javascript ×1

json ×1

jsonp ×1