希望这可以帮助,
:)
码
jQuery.fn.justtext = function() { return $(this).clone() .children() .remove() .end() .text();};alert($('#mydiv').justtext());
希望这可以帮助,
:)
码
jQuery.fn.justtext = function() { return $(this).clone() .children() .remove() .end() .text();};alert($('#mydiv').justtext());