jquery 3.0 url.indexOf error

后端 未结 5 792
臣服心动
臣服心动 2020-11-27 10:24

I am getting following error from jQuery once it has been updated to v3.0.0.

jquery.js:9612 Uncaught TypeError: url.indexOf is not a function

5条回答
  •  自闭症患者
    2020-11-27 11:19

    Jquery 3.0 has some breaking changes that remove certain methods due to conflicts. Your error is most likely due to one of these changes such as the removal of the .load() event.

    Read more in the jQuery Core 3.0 Upgrade Guide

    To fix this you either need to rewrite the code to be compatible with Jquery 3.0 or else you can use the JQuery Migrate plugin which restores the deprecated and/or removed APIs and behaviours.

提交回复
热议问题