jquery ajax报Uncaught TypeError :Illegal invocation

使用jquery ajax异步提交的时候报Uncaught TypeError :Illegal invocation错误,报错信息如图:


上网查了一下jquery的这个错误,导致这个错误的原因有俩点

1.请求类型有误,如,post请求,但在后台设置的是get请求

2.参数有误。 如,没有传参,或是参数对应不上去

经过排查我违反了上面的第二点,没有参入实际的参数,代码如下:

[javascript] view plain copy
print?
  1. $.ajax({  
  2.           url : '${pageContext.request.contextPath}/ctcst/archives_findTrainingDetails.action',  
  3.           data : {  
  4.               idNumber:idNumber  
  5.           },  
  6.           dataType : "json",  
  7.           success:function(data){  
  8.                 
  9.           }  
  10.       });  
原文地址:https://www.cnblogs.com/jpfss/p/9121215.html