new App()
- Source:
Methods
(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) showError(message)
显示错误信息
Parameters:
Name | Type | Description |
---|---|---|
message |
string |
- Source:
(static) showMessage(message)
显示信息
Parameters:
Name | Type | Description |
---|---|---|
message |
string |
- Source:
(static) viewMain(viewName, mainFn)
注册视图主函数
Parameters:
Name | Type | Description |
---|---|---|
viewName |
string | |
mainFn |
function |
- Source:
(static) viewScope(viewName, registerFn)
初始视图作用域
Parameters:
Name | Type | Description |
---|---|---|
viewName |
string | |
registerFn |
function |
- Source: