2

使用 CORS 代理我的代码制作 amp 列表时出现此错误

<amp-list items='feed.entry' layout="fixed-height" height="100" src="https://cdn.nixs.in/cdn/cors/?url=https://www.nixs.in/feeds/posts/default?alt=json" binding="no"> <template type="amp-mustache"> <div>{{#title}}{{$t}}{{/title}}</div> </template> </amp-list>

它的返回响应必须在“feed.entry”包含一个数组或对象。amp-list 但我的数组对象在 feed.entry 位置

我发现一些链接给出了一些解决方案,但没有一个对我有用

如何删除此错误“响应必须包含一个数组”。“。” 在制作下拉菜单时

https://github.com/ampproject/amphtml/issues/10613 https://github.com/ampproject/amphtml/issues/9687

这是我的代码https://jsbin.com/yoruvalego/edit?html,js,output

在此处输入图像描述 在此处输入图像描述

4

0 回答 0