报错:Uncaught TypeError:Illegal invocation

本文原地址:

Uncaught TypeError:Illegal invocation:                               中文意思是:未捕获的异常:非法调用

异常图片:

报错原因:通常是因为ajax传参有问题,请查看向Controller传递的参数。

本次碰到的问题是:

$.get('mobile/saveMobileMessage', {mobile : mobile}, function(result) {
		if (result.status != 200) {
			alert(result.msg);
		}
});

未定义mobile,就使用了。所以报异常Uncaught TypeError:Illegal invocation异常。

本文参考:https://blog.csdn.net/phoenix_smf/article/details/79000543

猜你喜欢

转载自blog.csdn.net/ma919755374/article/details/85000097