Uncaught TypeError: Cannot read property 'msie' of undefined

这篇博客主要讨论了在使用jQuery时遇到的'Uncaught TypeError: Cannot read property 'msie' of undefined'错误。文章详细描述了错误发生的情况,并提出了一个解决方案,即创建一个新的JS文件,将特定代码放入其中,并将其引入到网页以修复问题。
摘要由CSDN通过智能技术生成

1、错误描述

Uncaught TypeError: Cannot read property 'msie' of undefined
TypeError: a.browser is undefined


2、错误原因

(function(a){
	a.alerts={verticalOffset:-75,horizontalOffset:0,repositionOnResize:true,overlayOpacity:1,overlayColor:"rgba(0, 0, 0, 0.25) none repeat scroll 0 0",draggable:true,okButton:" \u786e\u5b9a ",cancelButton:" \u53d6\u6d88 ",dialogClass:null,alert:function(b,c,d){if(c==null){c="\u63d0\u793a"}a.alerts._show(c,b,null,"alert",function(e){if(d){d(e)}},null,null,null,null)},
			confirm:function(b,c,d){
				if(c==null){c="\u8bf7\u786e\u8ba4"}
				a.alerts._show(c,b,null,"confirm",function(e){
					if(d){d(e)}},null,null,null,null)},
					prompt:function(b,c,d,e){
						if(d==null){d="\u8bf7\u586b\u5199"}
						a.alerts._show(d,b,c,"prompt",function(f){
							if(e){e(f)}},null,null,null,null)},
							openBox:function(f,g,b,c,e,d,i){
								if(g==null){g="\u63d0\u793a"}
a.alerts._show(g,f,null,"openBox",function(h){
if(i){i(h)}},b,c,e,d)},
overAlert:function(c,b){
a.alerts._overShow(c,b)},
_overShow:function(d,c){
if(c==null){c=3000}
var b=c+600;
a("body").append('<div id="over_container" style="display:none"><div id="over_message"></div></div>');a("#over_message").text(d).html(a("#over_message").text().replace(/\n/g,"<br />"));
if(a.alerts.dialogClass){
	a("#over_container").addClass(a.alerts.dialogClass)}
var e=(a.browser.msie&&parseInt(a.browser.version)<=6)?"absolute":"fixed";
a("#over_container").css({position:e,zIndex:99999,width:350,padding:0,margin:0}).show("fast");
a("#over_container").css({minWidth:a("#over_container").outerWidth(),maxWidth:a("#over_container").outerWidth()});
a.alerts._overReposition();
setTimeout(function(){a("#over_container").hide("fast")},c);
setTimeout(function(){a("#over_container").remove()},b)},
_overReposition:function(){
	var c=4;
	var b=((a(window).width()/2)-(a("#over_container").o
  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值