在我的一个引导标签中,我插入了一个HTML表格。有一个排序功能可以在点击<th>
标签时对所有结果进行排序。
现在这是其中一个链接:
<th><a href="#customers?sort-by=email&order='. $this->order .'">E-Mail</a></th>
当您点击该链接时,它应该基本上刷新页面,但由于锚#customers
它不会。当我从链接中删除#customers
时,它会刷新页面,但它没有显示正确的标签。
知道如何刷新并保持页面的相同选项卡/锚点吗?
答案 0 :(得分:2)
<th><a href="?sort-by=email&order'. $this->order .'#customers">E-Mail</a></th>