当我直接点击 index.html 时,聚合物不起作用

polymer does not work when i click on index.html directly

我正在使用 Dreamweaver 开发 Polymer 应用程序。当我使用 F12 预览我在 chrome 中的工作时,一切似乎都很好。当我直接点击 index.html 时,聚合物的所有元素都丢失了。

direct click on chrome

F12 in Dreamweaver (preview in chrome)

有什么问题

安装布多。

npm install budo -g

打开文件(需要js文件,可以新建一个)

budo index.js 

然后去找你chrome

http://localhost:9966/