Class: ViewManager

ViewManager()

new ViewManager()

视图管理器
Source:

Methods

(static) doRenderView(url, force, afterRenderFnopt)

加载视图
Parameters:
Name Type Attributes Description
url string URL字符串
force boolean
afterRenderFn function <optional>
Source:

(static) hiddenView(viewElement, pushModeopt)

隐藏视图
Parameters:
Name Type Attributes Default Description
viewElement Document | Element
pushMode boolean <optional>
false
Source:

(static) loadView(url)

加载视图
Parameters:
Name Type Description
url string URL字符串
Source:

(static) popView(url)

从栈顶移除视图并显示该视图
Parameters:
Name Type Description
url string URL字符串
Source:

(static) pushView(url)

加载视图并添加到栈中
Parameters:
Name Type Description
url string URL字符串
Source:

(static) replaceView(url)

替换视图
Parameters:
Name Type Description
url string URL字符串
Source:

(static) showView(targetElement, popModeopt)

显示视图
Parameters:
Name Type Attributes Default Description
targetElement Document | Element
popMode boolean <optional>
false
Source:

(static) startViewLifecycle(viewElement)

开启视图生命周期
Parameters:
Name Type Description
viewElement Document | Element
Source:

(static) stopViewLifecycle(viewElement)

结束视图生命周期
Parameters:
Name Type Description
viewElement Document | Element
Source: