1. Expresses its operation is successful, the text will appear above the icon indicates a successful operation.
wx.showToast ({ title: 'operation is successful!', // title icon: 'Success', // icon type, default Success DURATION: 1500 // prompt window dwell time, default 1500ms })
2. Expresses its load, the load is displayed as an icon.
wx.showToast ({ title: 'Loading ...' , icon: 'loading' , DURATION: 1500 })
3. The icon is not displayed, usually used as a prompt.
wx.showToast ({ title: 'This function is not on the line!' , icon: 'none' , DURATION: 1500 })
3 or more popups are using wx.showToast interface will stay a certain time after the call according to the set duration.
In addition, it will load in the pop can also use wx.showLoading interface, but pop when invoking the interface, and will not go away, but the need to manually call wx.hideLoading interface allows popups disappear.
// start loading data wx.showLoading ({ title: 'Loading' , })
// Loading ...
// Loading ... // data loading is completed, the hidden pop wx.hideLoading ()
Finish.