我正在尝试为我的模态添加一个额外的类,以便我可以从LESS中选择它并将其背景变为透明 . 但是customClass不起作用 . 有没有其他方法可以做到这一点 . BTW我已经用默认类改变了很多,所以我只需要一个模态就可以做到这一点,不能影响全局的swal .

swal({
      title: success,
      showConfirmButton: false,
      html: true,
      customClass: ".swal-back"
   });