document.all是IE浏览器的特有JS属性。 因为,当需要判断客户端使用是否IE浏览器时 if ( document.all ) { // is IE browser } else { // is not IE browser }