Class: Event

Event


new Event()

Methods


on(name, fn, ctx)

订阅事件 - mount - mounted - beforeEach - afterEach
Parameters:
Name Type Description
name String 事件名
fn function 事件函数
ctx * this 指向