vm.$once( event, callback )

  • 参数

    • {string} event
    • {Function} callback
  • 用法

监听一个自定义事件,但是只触发一次,在第一次触发之后移除监听器。