ITPub博客

首页 > 应用开发 > > jquery弹出框

jquery弹出框

作者:youyouaq 时间:2019-09-12 11:34:59 0 删除 编辑

为什么弹出框只能弹一次,刷新再能弹下一次

if($("#" + i).val()==""||$("#" + i).val()==null||$("#" + i).val()==undefined){

// alert(stus[i]+'不能为空');

var _this = stus[i]+'不能为空';

var str='';

// console.log(_this);

var this_sec = 3000;

if (_this){

str+="<p>"+_this+"</p>";

$('.toast').append(str);

$('.toast').fadeIn();

}setTimeout(function () {

                $('.toast').fadeOut(function () {
                    $(this).remove();
                });
                _this = '';
            },1000);
        }


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3050/viewspace-3152657/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2019-08-13

  • 博文量
    90
  • 访问量
    783