while(d.nodeType==3){ d= d.nextSibling } 转载于:https://www.cnblogs.com/xingguang/archive/2010/04/30/1724752.html