【发布时间】:2010-01-06 23:06:12
【问题描述】:
如何在锚点中添加跨度标签,将其更改为
<a href="somewhere.html">Here is the link to somewhere.</a>
使用 jquery 来实现这一点
<a href="somewhere.html">
<span>Here is the span content.</span>
Here is the link to somewhere.
</a>
【问题讨论】:
-
在 jQuery 文档中查找 html() 函数并使用它来更改锚点内容。
标签: jquery