ajax Uncaught TypeError: Illegal invocation 报错

Uncaught TypeError: Illegal invocation

这里写图片描述

这种一般是以下两种问题造成的:

1.请求类型错误: post请求,但在后台设置的是get请求;
(返回错误码 405 多半也是这个原因)

2.参数错误: 没有传参,或是参数传递错误;

猜你喜欢

转载自blog.csdn.net/freedomVenly/article/details/81533978