JS自定义全局Error
2024-08-31 11:14:18
<script>
///自定义错误
onerror=handleErr;
function handleErr(msg,url,l)
{
var txt="";
txt+="请检查选择的文件,页面错误信息: " + msg + "\n";
layer.alert(txt, {
icon: 5,
time: 2000
});
return true
}
</script>
最新文章
- IT干货
- fiddler 配置
- Android如何在java代码中设置margin
- MongoDB(索引及C#如何操作MongoDB)(转载)
- The CircuitCalculator.com Blog a blog with live web calculators Home About Policies Contact PCB
- 高仿精仿微信应用ios源码下载
- 自己设计的SSO登录流程图
- PHP文件夹操作
- 初探 spring data(一)--- spring data 概述
- File API文件操作之FileReader
- 计算机网络之IP地址
- Batch Normalization原理
- js操作对象
- POI操作Excel(xls、xlsx)
- node模块加载机制。
- vue中使用better-scroll实现滑动效果
- 【洛谷】【堆】P1801 黑匣子_NOI导刊2010提高(06)
- Asp.net Mvc 过滤器执行顺序
- php_memcahed 安装
- 使用Apache Jmeter进行并发压力测试