SCRIPT438: 对象不支持“attachEvent”属性或方法
在IE11的时候,jquery-1.10.1.min.js报错,说对象不支持“attachEvent”属性或方法 ,在chrome和火狐都没有报错,
附上js代码:
var recordObj={};
//添加Map类型
recordObj.mapAdd=function(){
var sTypeName=$("#typeName").val();
if(sTypeName==null||sTypeName=="")
{
alert("类别名称不能为空");
return;
};
var params={
action:'mapAdd',
typeName:sTypeName
};
var sParams = decodeURIComponent($.param(params));
$.getScript('http://192.168.1.222/tap/action/recordAction.php?'+sParams,function(){
if(retInfo.retCode==0){
alert('添加成功');
window.location.href="indexMap.htm";
}
})
}