==. 1 "in the popup wx.showToast interactive interface display a message box It is the disappearance of a prompt box prompts the user to success or failure and other news <button size='mini' bindtap='hanleShowToasr'>弹出层</button> hanleShowToasr(){ wx.showToast({ title: 'success' , DURATION: 2000, // after 2s disappeared icon: 'none', // remove small icon }) },
2 == "modal dialog box displayed wx.showModal It is not only the disappearance of tips as well as OK and Cancel buttons <button size='mini' bindtap='getshowModal'>弹出层</button> getshowModal () { wx.showModal({ title: 'prompt' , Content: 'This is a modal pop' , showCancel: false , // whether to display the cancel button does not display false cancelText: "Oh canceled", // changes Cancel confirmText: "Eat the workers" , success(res) { if (res.confirm) { the console.log ( 'the user clicks OK' ) } else if (res.cancel) { console.log ( 'user clicks Cancel' ) } } }) },