1

我正在使用page.js用于路由的聚合物入门套件。该hashbang page选项设置truerouting.html

// add #! before urls
page({
  hashbang: true
});

当点击诸如此类的链接时<a href="/products/productname"></a>#!会添加 并且生成的 url 看起来像这样:http://localhost:3000/#!/products/productname但是当在新的浏览器选项卡中打开链接时,它们看起来像这样http://localhost:3000/products/productname#!在新标签页中打开链接时如何添加?

4

1 回答 1

0

你必须写

<a href="#!/products/productname"

在你的每一个href

于 2015-11-05T17:58:08.807 回答