-
Notifications
You must be signed in to change notification settings - Fork 0
API
yanjie108 edited this page Mar 18, 2019
·
32 revisions
在页面逻辑js中引入
let apiobj=this.getApi();
apiobj.showToast(text)
参数
text
| 属性 | 类型 | 默认值 | 必填 | 说明 |
|---|---|---|---|---|
| text | string | 是 | 提示的内容 |
apiobj.alert(msg,title,callback)
参数
| 属性 | 类型 | 默认值 | 必填 | 说明 |
|---|---|---|---|---|
| text | string | 是 | ||
| title | string | 否 | ||
| callback | function | 否 | 回调函数 |
apiobj.comfirm(msg,title,callback)
参数
| 属性 | 类型 | 默认值 | 必填 | 说明 |
|---|---|---|---|---|
| text | string | 是 | ||
| title | string | 否 | ||
| callback | function | 否 | 回调函数 |
apiobj.showLoading(loadingtext)
参数
| 属性 | 类型 | 默认值 | 必填 | 说明 |
|---|---|---|---|---|
| loadingtext | string | 否 |
apiobj.hideLoading() 关闭等待框