<div><span class="myspan">hello</span> this text has no span </div>
在jquery中如何包装div或跨越“this text has span span”文本?
$("div span").detach().prependTo($("div").contents().wrap("<span />").end());
演示:http://jsfiddle.net/awwTA/