JS prompt typeerror: e.indexof is not a function


Recently, I found that the jQuery version of our company’s underlying framework is too low, so I downloaded the latest jQuery 3.4.1 on the Internet to replace our underlying framework’s jQuery. After replacing it, I found that there was a problem with iframe after logging in to the underlying background. After clicking the menu, I directly jumped to the internal iframe page, and the JS error of typeerror: e.indexof is not a function was reported


This is because the $(window). Load (function() {}) method we used has been discarded in the jQuery version. We just need to modify it to:


At this time, we will run again and find that everything is normal