📅  最后修改于: 2022-03-11 15:02:49.732000             🧑  作者: Mango
Neither of the answers here helped me.
The problem was: I was using the slim build of jQuery, which had some things removed, ajax being one of them.
The solution: Just download the regular (compressed or not) version of jQuery and include it in your project.