博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
toastr自身的onclik函数
阅读量:4322 次
发布时间:2019-06-06

本文共 967 字,大约阅读时间需要 3 分钟。

function showNofity(e) {

if (e!="") {
notif("", e + "催办申请,请尽快处理", '@EToastrNotifyType.Warning.ToString()');
}

}

function notif(title, message, toastrType) {

toastr.options = {
"closeButton": true,
// "id":"clickss",
"debug": false,
"progressBar": true,
"positionClass": "toast-bottom-right",
//"onclick":Jumping(),
"showDuration": "400",
"hideDuration": "1000",
"timeOut": "3000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
}

//自身的onclik函数,点击弹出框,直接跳转到消息内容相关的页面上,此页面是套嵌在iframe中的,所以写法如下

toastr.options.onclick = function () {
$("iframe").attr("src", "../../Approcess/Index")
};

switch (toastrType.toLowerCase()) {

case "success":
toastr.success(message, title);
break;
case "info":
toastr.info(message, title);
break;
case "warning":
toastr.warning(message, title);
break;
case "error":
toastr.error(message, title);
break;
default:
}
}

转载于:https://www.cnblogs.com/tiecaiying/p/8350134.html

你可能感兴趣的文章
Python文件和目录模块介绍:glob、shutil、ConfigParser
查看>>
java压缩/解压缩zip格式文件
查看>>
Linux shell(3)
查看>>
历上最强的音乐播放器(jetA…
查看>>
JSON的基本结构和数据交换原理
查看>>
转:Zend Framework 重定向方法(render, forward, redirect)
查看>>
Linux下查看磁盘与目录的容量——df、du
查看>>
关于日记app的思考
查看>>
使用sencha的cmd创建项目时提示找不到\Sencha\Cmd\repo\.sencha\codegen.json
查看>>
如何快速启动一个Java Web编程框架
查看>>
MSP430单片机存储器结构总结
查看>>
文本框过滤特殊符号
查看>>
教育行业安全无线网络解决方案
查看>>
7个杀手级的开源监测工具
查看>>
软件架构学习小结
查看>>
C语言实现UrlEncode编码/UrlDecode解码
查看>>
返回用户提交的图像工具类
查看>>
树链剖分 BZOJ3589 动态树
查看>>
挑战程序设计竞赛 P131 区间DP
查看>>
【例9.9】最长公共子序列
查看>>