Polymer 显示核心ajax自定义元素时出错

Polymer 显示核心ajax自定义元素时出错,polymer,Polymer,我正在制作一个自定义元素来显示亚音速服务器上的专辑封面墙。声明后,元素将查询服务器并返回200个响应。响应正确地记录在控制台中。但在浏览器中不会渲染任何内容 <link rel="import" href="../bower_components/core-ajax/core-ajax.html"> <link rel="import" href="album-info-big-art.html"> <polymer-element name="albums-wal

我正在制作一个自定义元素来显示亚音速服务器上的专辑封面墙。声明后,元素将查询服务器并返回200个响应。响应正确地记录在控制台中。但在浏览器中不会渲染任何内容

<link rel="import" href="../bower_components/core-ajax/core-ajax.html">
<link rel="import" href="album-info-big-art.html">
<polymer-element name="albums-wall" attributes="url">
<template>
 <core-ajax auto url="{{url}}" handleAs="json" response="{{response}}"></core-ajax>
  <template id='albums' repeat="{{response.subsonic-response.albumList2.album}}">
   <album-info-big-art artist='{{artist}}' title='{{name}}' img='{{coverArt}}'></album-info-big-art>
  </template>
 </template>
 <script>
  Polymer('albums-wall',{
   responseChanged: function(e) {
     var albums = this.response;
     console.log(albums);
   }
 });   
</script>
</polymer-element>

我很确定我在js部分遗漏了一些东西

问题在于属性名称亚音速响应。不能在路径属性名称中使用破折号。重写表达式以使用数组语法:
response['subsonic-response']…

我通过调用Github API来列出我的存储库,尝试了您的代码。它工作得很好。你确定你的URL是正确的吗?也许你需要某种身份验证?请求是否已发送到服务器?您是否没有收到回复,或者收到200条回复,但浏览器中没有显示任何内容?浏览器开发控制台中是否记录了任何错误?url是正确的。响应将按预期返回数据。控制台中也没有错误。
Object {subsonic-response: Object}
 subsonic-response: Object
  albumList2: Object
   album: Array[60]
__proto__: Object
status: "ok"
version: "1.10.2"
xmlns: "http://subsonic.org/restapi"
__proto__: Object
__proto__: Object