window.showMsg = function (msg) {
    //显示悬浮窗
    $("#autoCloseModal").modal("show")
    //设置文本内容
    $("#autoCloseModal #autoCloseModalBody").html("")
    $("#autoCloseModal #autoCloseModalBody").html(msg);
    //两秒后消失
    setTimeout(function () { $("#autoCloseModal").modal("hide") }, 2000);
};



调用:

showMsg('成功!');

 

相关文章:

  • 2022-12-23
  • 2022-02-10
  • 2021-12-10
  • 2021-08-14
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-15
  • 2022-01-20
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
相关资源
相似解决方案