var getMatchedTextNode = function(text, target) { return document.evaluate( 'descendant::text()[contains(., "' + text.replace(/"/g, '\\"') + '")]', target || document.body, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null ).singleNodeValue; }http://subtech.g.hatena.ne.jp/secondlife/20091118/1258554379
とある要素以下にある textNode で一致する textNode を XPath で高速に取り出す
机器瞎学/数据掩埋/模式混淆/人工智障/深度遗忘/神经掉线/计算机幻觉/专注单身二十五年