element 确认框 confirm 的写法

时间:2020-01-16 22:35:30   收藏:0   阅读:988

 

      this.confirm(‘内容‘, ‘标题‘, {
        confirmButtonText: ‘确定‘,
        cancelButtonText: ‘取消‘,
        type: ‘success‘,
        callback: action => {
          if (action === ‘confirm‘) {
            console.log(‘按下 确定‘)
          }
          else {
            console.log(‘按下 取消‘)
          }
        }
      })

原文:https://www.cnblogs.com/qinlongqiang/p/12203494.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!