AppStateIOS 3种状态 activebackgroundinactive inactive是一个过度状态,处于前台,但是没有处理事件。 方法 addEventListener:添加监听removeEventListener:移除监听 属性 currentState:当前状态