var text = $(".title").contents().filter(function() { return this.nodeType == Node.TEXT_NODE;}).text();这将获取
contents所选元素的,然后对其应用过滤功能。过滤器功能仅返回文本节点(即带有的节点
nodeType ==Node.TEXT_NODE)。

var text = $(".title").contents().filter(function() { return this.nodeType == Node.TEXT_NODE;}).text();这将获取
contents所选元素的,然后对其应用过滤功能。过滤器功能仅返回文本节点(即带有的节点
nodeType ==Node.TEXT_NODE)。