我的HTML代碼包textnode:jQuery的:找到並與一些元素
<body>Firebrand will tend to burn any bricks out there. so the best idea is to ignore any active firebrand if you are a bricks. Otherwise, you can challenge a firebrand if you have the proper quality to keep up with their latest technology. And don't mess up with firebrand if you are a robber.</body>
我想找到身體內的任何「火把」,並與<span class="firebrand">firebrand</span>
與jQuery
請更清楚地表達你的意圖。正如你可以在Karim79的回答中看到的那樣,規範還不夠清楚。 – Huppie 2009-11-24 09:46:06
對不起我的壞, 我只想找到任何關鍵字,我希望用span來包裹無論父母的元素,它應該搜索整個文檔。 我需要獲取文本節點並用span展開,這樣我可以給出不同的樣式。 是否有無論如何我可以做到這一點,而不使用$(選擇器).html()? – mdennisa 2009-11-24 14:35:08