实际上,当我单击一个链接(第 1 页)时,它将重定向到其他页面(第 2 页),该页面(第 2 页)中的一个元素(div)应该使用 jquery 选择或激活或对其执行任何操作.
最佳答案
你可以只使用href <a>
的属性标签。
MDN:
The href attribute indicates the link target, either a URL or a URL fragment. A URL fragment is a name preceded by a hash mark (#), which specifies an internal target location (an ID) within the current document.
示例:
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#Example.3A_Linking_to_an_external_location">
Link Name
</a>
关于javascript - 如何通过使用 jquery 单击链接重定向来从其他页面选择/激活某些东西或 div?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26381197/