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

Recommended Today

The basic syntax and function of triggers in SQLSEVER

What is a trigger? Triggers are stored procedures that are executed automatically when a table is inserted, updated, or deleted. A special stored procedure that is automatically executed when a trigger inserts, updates, or deletes a table. Triggers are generally used for more complex check constraints. The difference between a trigger and a normal stored […]