摘要:
function GetEle(obj, IsPre, nodeName) { if (IsPre) { if (obj.previousSibling.nodeName.toLowerCase() == nodeName.toLowerCase()) { return obj.previousSibling; } return GetEle(obj.previousSibling, IsPre, nodeName); } else { if (obj.nextSibling.nodeName.toLowerCase() == nodeName.toLowerCase()) { return 阅读全文