IE和Firefox的Javascript兼容性总结

if(document.all){
    cityname_div = document.getElementById("city_name_div").innerText;
}else{
    cityname_div = document.getElementById("city_name_div").textContent;
}
 

 

http://www.cnblogs.com/wiky/archive/2010/01/09/IE-and-Firefox-Javascript-compatibility.html

 

http://www.cnblogs.com/dwjaissk/archive/2006/04/01/364329.html

你可能感兴趣的:(JavaScript)