Vue.js vm.$once 方法及代码示例

参数:

{string} event

{Function} callback

用法:

监听一个自定义事件,但是只触发一次。一旦触发之后,监听器就会被移除。