下面在 HTML 中,在页面中呈现。
<div class="breadcrumb">
<span class="breadcrumb-trail" id="ctl00_ContentPlaceHolder1_ctl00_bc_content"><a title="" href="/default.aspx" target="_self">Home</a> > <a title="" href="/summary.aspx?sid=105&pid=133" target="_self">Summary</a></span>
</div>
在文档就绪功能上,我必须更换
<a title="" href="/summary.aspx?sid=105&pid=133" target="_self">Summary</a>
和
Summary
以便将 HTML 更改为以下内容:
<div class="breadcrumb">
<span class="breadcrumb-trail" id="ctl00_ContentPlaceHolder1_ctl00_bc_content"><a title="" href="/default.aspx" target="_self">Home</a> > Summary</span>
</div>
我怎么能用 jQuery 做到这一点?