var layerIndex= layer.load(1,{shade: [0.3, '#000']});
$.post('${pageContext.request.contextPath}/leaguer/reDeductFeeByReportId', formData, function (data) {
    //判断是否发送成功
    if (data.code == 200) {
        layer.close(layerIndex);
        layer.msg("扣费成功");
        var int=self.setInterval(function(){  // 这个方法是说在延迟两秒后执行大括号里的方法
          parent.document.getElementById('my_iframe').contentWindow.location.reload(true)
            // 这个方法是刷新当前页面
        },2000);
    } else {
        layer.msg(data.message, {type: 1});
    }
})

 

相关文章:

  • 2022-02-07
  • 2021-12-12
  • 2022-01-24
  • 2022-01-18
  • 2021-09-10
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-31
  • 2021-11-19
  • 2021-06-08
  • 2022-02-07
  • 2021-07-24
  • 2021-08-14
  • 2021-07-14
相关资源
相似解决方案