zoukankan      html  css  js  c++  java
  • jquery easyui alert闪一下的问题

    最近做项目使用了 jQuery EasyUI,版本是 1.4.3.x,在使用alert方法的时候如果alert后面执行页面跳转的话alert的消息只会闪一下,就跳到其他页面了

    $.messager.alert('提示','我是弹出框!');
    window.location.href = 'index.html';
    //这种情况alert闪一下,就跳转了

    为了给用户看到提示框的消息,可以在用户点击 【Ok】 的时候在跳转,这样就不会闪一下就跳了

    $.messager.alert('提示',"我是弹出框!",'info',function(){
        window.location.href = 'index.html';
    });
    icon四种设置:"error"、"info"、"question"、"warning"
  • 相关阅读:
    枚举
    枚举
    比特币中的密码学原理
    贪心
    dp
    二分
    mac解决matplotlib中文乱码
    Keras使用多个GPU并行
    pyspark使用-dataframe操作
    箱线图
  • 原文地址:https://www.cnblogs.com/aeiou/p/5715027.html
Copyright © 2011-2022 走看看