<div class="myclass selected">
<h2 class = "title">#Content 1</h2>
</div>
<div class="myclass">
<h2 class = "title">#Content 2</h2>
</div>
<div class="myclass">
<h2 class = "title">#Content 3</h2>
</div>
<div class="myclass">
<h2 class = "title">#Content 4</h2>
</div>
我想在 url 中显示为“http://example.com/#content-1”,并希望为每个选择进行更新。使用 jquery 可以做到这一点吗?