innerText 旧版的火狐、旧版的IE不支持这个属性 处理兼容性问题 function(element){ if (element.innerText) { return element.innerText; } else { return element.textContent; } }