取消冒泡
```<div class="wrapper";width:100px;height:100px;bgckground-color"red;>
</div>
<script type="text/javascript">
document.onclick = function () {
console.log("你好");
}
var div = document.getElementsByTagName('div')[0];
div.onclick = function (e) {
// 取消冒泡方法一
// e.stopPropagation();
//取消冒泡方法二
e.cancelBubble = true;
this.style.background = "green";
}
</script>