javascript阻止子元素继承父元素事件

$('.box').on('click', function (e) {
  if(e.target == this) {
    console.log(e.target)
  }
})