我正在使用page.js
用于路由的聚合物入门套件。该hashbang
page
选项设置true
为routing.html
// add #! before urls
page({
hashbang: true
});
当点击诸如此类的链接时<a href="/products/productname"></a>
,#!
会添加 并且生成的 url 看起来像这样:http://localhost:3000/#!/products/productname
但是当在新的浏览器选项卡中打开链接时,它们看起来像这样http://localhost:3000/products/productname
。#!
在新标签页中打开链接时如何添加?