我是 Polymer 的新手,所以我尝试了几乎所有在 Internet 上找到的东西,但没有奏效。我只有一个白页。我做错了什么?这是我的代码
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
<title>ScuolaMedia</title>
<meta name="description" content="ScuolaMedia description">
<link rel="manifest" href="/manifest.json">
<script src="/bower_components/webcomponentsjs/webcomponents-loader.js"></script>
<link rel="import" href="/bower_components/polymer/polymer.html">
<link rel="import" href="/bower_components/iron-ajax/iron-ajax.html">
<link rel="import" href="/bower_components/iron-list/iron-list.html">
</head>
<body>
<iron-ajax url="data.json" last-response="{{data}}" auto></iron-ajax>
<iron-list items="[[data]]" as="item">
<template>
<div>
Name: [[item.name]]
</div>
</template>
</iron-list>
</body>
</html>
而这个data.json:
[
{"name": "Bob"},
{"name": "Tim"},
{"name": "Mike"}
]