📅  最后修改于: 2022-03-11 15:04:15.583000             🧑  作者: Mango
function textNodesUnder(el){
var n, a=[], walk=document.createTreeWalker(el,NodeFilter.SHOW_TEXT,null,false);
while(n=walk.nextNode()) a.push(n);
return a;
}