JS prompt typeerror: e.indexof is not a function

Time:2020-2-13

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

resolvent:

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

$(window).on('load',function(){})

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 […]