我在学聚合物。想链接纸张按钮,但不起作用。错误在哪里?纸按钮不起作用,错误在哪里?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Polymer</title>
<script src="bower_components/webcomponentsjs/webcomponents.js"></script>
<link rel="import" href="bower_components/polymer/polymer.html">
<link rel="import" href="bower_components/paper-button/paper-button.html">
</head>
<body>
<paper-button>flat button</paper-button>
</body>
</html>
定义“不起作用”。它做什么或不做什么?你看过你的Javascript控制台是否所有的进口都加载? – deceze 2015-04-01 06:36:37
我没有检查Javascript控制台,该怎么做? – 2015-04-03 01:48:01
找出你的浏览器的开发工具在哪里,你会惊讶于那里有什么,以及它们会让你的生活变得多么容易。 – deceze 2015-04-03 04:53:07