innerHTML和innerText
innerText在ie6上正常,在firefox上不能正常显示
innerHTML在IE6和Firefox上都正常。
比如:
document.getElementById("elementId").innHTML = "some infomation"
-------
document.all()在IE6上正常,在Firefox上不正常。
建议使用document.getElementById(id_str);
innerHTML和innerText
innerText在ie6上正常,在firefox上不能正常显示
innerHTML在IE6和Firefox上都正常。
比如:
document.getElementById("elementId").innHTML = "some infomation"
-------
document.all()在IE6上正常,在Firefox上不正常。
建议使用document.getElementById(id_str);