oBtn.onclick = function (ev) { var oEvent = ev || event; oDiv.style.display = "block"; oEvent.cancelBubble = true;//阻止冒泡 }