Several small micro-channel program of frequent bomb box message

A modal window

Delete () {
wx.showModal ({
title: '',
Content: 'whether to delete',
Success (RES) {
IF (res.confirm) {
the console.log ( 'the user clicks OK')
} the else IF (RES. cancel) {
the console.log ( 'the user clicks cancel')
}
}
})
}
`

Second, the message you want tips

wx.showToast({
title: '成功',
icon: 'success',
duration: 2000
})

```

Note
wx.showLoading  and  wx.showToast  the same time can only display a
wx.showToast  should  wx.hideToast  paired

Third, the prompt box displays loading

wx.showLoading ({
title: 'Loading'
})

setTimeout(function () {
wx.hideLoading()
}, 2000)



#####四、  ```wx.showActionSheet(OBJECT) ```

wx.showActionSheet({
itemList: ['A', 'B', 'C'],
success: function(res) {
console.log(res.tapIndex)
},
fail: function(res) {
console.log(res.errMsg)
}
})
```

Guess you like

Origin www.cnblogs.com/jessie-xian/p/11572009.html