Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 HTML<a href=#>1</a>会引导我回到当前页面,但是当我在 jQuery 中执行此操作时,它会将我引导到 localhost 的索引。如何使它以与 HTML 类似的方式工作?
<a href=#>1</a>
$(id).append("<a href='#'> 1 </a>");