摘要:
// 兼容火狐获取一个节点的相同类型的上一个相邻节点function perviousSiblingSameType(node , cnode ){ // 为空直接返回null if(node.previousSibling == null ) { return null ; } else { // 节点类型不相等继续递归 if(node.previousSibling.nodeType != cnode.nodeType) { return perviousSiblingSam... 阅读全文