获取标签中除子标签之外的文本元素

var text = $("h3").contents().filter(function() { return this.nodeType === 3; }).text(); node

相关文章
相关标签/搜索