1.元素绑定
bobj.attachEvent("onclick",hi); //IE8中支持
addEventListener("click",hi); //IE8不支持
2.标签文本设置
textContent // ie8不支持
innerText // 都支持
3.元素样式获取
window.getComputedStyle(box,null).left //谷歌、火狐
box.currenStyle.left //ie8
4.阻止事件冒泡
window.event.cancelBubble=true; //谷歌,IE8支持
e.stopPropagation(); // 谷歌,火狐支持
5.节点
element.firstChild---->谷歌,火狐获取第一个节点
element.firsrChild---->IE8 获取第一个元素
element.firstElementChild--->谷歌,火狐第一个元素,IE8不支持
6.事件处理函数
function(e){} //谷歌.火狐
function(window.event){} //IE8