1、错误描述
jquery-1.9.1.min.js:69 Uncaught TypeError: Illegal invocation
at o (jquery-1.9.1.min.js:69)
at gn (jquery-1.9.1.min.js:69)
at gn (jquery-1.9.1.min.js:69)
at gn (jquery-1.9.1.min.js:69)
at Function.b.param (jquery-1.9.1.min.js:69)
at Function.ajax (jquery-1.9.1.min.js:69)
at student.js:1960
at jquery.hiAlerts-min.js:6
at HTMLInputElement.<anonymous> (jquery.hiAlerts-min.js:56)
at HTMLInputElement.dispatch (jquery-1.9.1.min.js:35)
2、错误原因
$.ajax({
url : "student/page/findStu/"+stuId,
type : "POST",
dataType : "json",
data:{
stuAddr:stuAddr
},
success:function(data){
}
});
在ajax请求中,stuAddr传值出现错误,值为[object HTMLTableCellElement]3、解决办法
查看stuAddr传值,发现没有给值
在调用这个请求时,获取正确的stuAddr值