獲取標籤中除子標籤之外的文本元素

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

相關文章
相關標籤/搜索