mmRouter
mmRouter copied to clipboard
The state's event handler what onBeforeLoad and onAfterLoad never been called before state load or after.
state的事件函数onBeforeLoad和onAfterLoad从未在state加载前后被调用。
In this demo: http://ued.qunar.com/oniui/index.html#!/widgets?widgetId=mmRouter&ex=ex5 There are two event handler functions named onBeforeLoad and onAfterLoad in state that "contacts.list", but they never been called when click button that "点击到状态:contacts.list" to switch state .
在 http://ued.qunar.com/oniui/index.html#!/widgets?widgetId=mmRouter&ex=ex5 这个演示: 在"contacts.list"状态中定义了两个事件函数onBeforeLoad和onAfterLoad,但是在点击"点击到状态:contacts.list"按钮切换state时从没调用这两个函数。