微信小程序刪除處理
沒有 confrim 那怎么實現這個效果呢
可以使用小程序里的模態框
代碼:
wx.showModal({ title: '提示', content: '確定要刪除嗎?', success: function (sm) { if (sm.confirm) { // 用戶點擊了確定 可以調用刪除方法了 } else if (sm.cancel) { console.log('用戶點擊取消') } } })
微信小程序操作成功提示后跳轉
wx.showToast({ title: res.msg, icon: 'loading', duration: 3000 }); setTimeout(function(){ wx.navigateTo({ url: '/pages/ucenter/mycar/carlist/carlist' }) },3000)
轉: https://blog.csdn.net/core_song/article/details/81115718
https://blog.csdn.net/core_song/article/details/81115718