## uni.showToast(OBJECT)
顯示消息提示框。
**OBJECT參數說明**
參數 類型 必填 說明

**icon 值說明**

**示例**
```
uni.showToast({
title: '標題',
duration: 2000
});
```
## uni.showLoading(OBJECT)
顯示 loading 提示框, 需主動調用 uni.hideLoading 才能關閉提示框。
**OBJECT參數說明**

**示例**
```
uni.showLoading({
title: '加載中'
});
```
**uni.hideToast()**
隱藏消息提示框。
**示例**
```
uni.hideToast();
uni.hideLoading()
```
隱藏 loading 提示框。
**示例**
```
uni.showLoading({
title: '加載中'
});
setTimeout(function () {
uni.hideLoading();
}, 2000);
```
## uni.showModal(OBJECT)
顯示模態彈窗,類似于標準 html 的消息框:alert、confirm。

**success返回參數說明**

## 示例
uni.showModal({
title: '提示',
content: '這是一個模態彈窗',
success: function (res) {
if (res.confirm) {
console.log('用戶點擊確定');
} else if (res.cancel) {
console.log('用戶點擊取消');
}
}
});
## uni.showActionSheet(OBJECT)
?顯示操作菜單
**OBJECT參數說明**

**success返回參數說明**

**示例**
uni.showActionSheet({
itemList: ['A', 'B', 'C'],
success: function (res) {
console.log('選中了第' + (res.tapIndex + 1) + '個按鈕');
},
fail: function (res) {
console.log(res.errMsg);
}
});