_events:用于存放组件内的事件
    _hasHookEvent:是否有生命周期钩子的回调函数挂载在当前组件上,eg: @hook:beforeCreated
    listeners: v-on 的事件集合

    1. export function initEvents (vm: Component) {
    2. vm._events = Object.create(null)
    3. vm._hasHookEvent = false
    4. // init parent attached events
    5. const listeners = vm.$options._parentListeners
    6. if (listeners) {
    7. updateComponentListeners(vm, listeners)
    8. }
    9. }