如何使用路由器 link 在 link 的末尾包含锚点?
How to include anchor at the end of the link using routerlink?
如何使用路由器link在link的末尾包含锚点?
我需要在 link 的末尾包含一个锚点,以便能够识别将要访问的页面上的特定位置。
<a [routerLink]="['/page', item.slug]#local"> Button </a>
第
页
<a name="local"></a>
<a [routerLink]="['/page', item.slug]#local"> Button </a>
无法正常工作。
可以参考
如何使用路由器link在link的末尾包含锚点?
我需要在 link 的末尾包含一个锚点,以便能够识别将要访问的页面上的特定位置。
<a [routerLink]="['/page', item.slug]#local"> Button </a>
第
页<a name="local"></a>
<a [routerLink]="['/page', item.slug]#local"> Button </a>
无法正常工作。
可以参考