我对一些实验性的想法有疑问。可能只有 jQuery 大师可以在这里帮助我 :)
我有一段:
<p>Lorem Ipsum is simply dummy text of the printing
and typesetting industry. Lorem Ipsum has been the
industry's standard dummy text ever since the 1500s,
when an unknown printer took a galley of type and
scrambled it to make a type specimen book.</p>
我需要在 jQuery 的帮助下将所有具有至少 4 个字符“on-the-fly” onMouseOver 的单词转换为从每个单词创建的链接。
我不想在 HTML 中生成它(因为带宽,它会增长到兆),该代码将如下所示:
<p>
<a href="/search?q=Lorem">Lorem</a>
<a href="/search?q=Ipsum">Ipsum</a>
is
<a href="/search?q=simply">simply</a>
.........
</p>
我也会感谢任何文本装饰 onMouseOver。