jquery 3.0 url.indexOf error

后端 未结 5 793
臣服心动
臣服心动 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:16

    I came across the same error after updating to the latest version of JQuery. Therefore I updated the jquery file I was working on, as stated in a previous answer, so it said .on("load") instead of .load().

    This fix isn't very stable and sometimes it didn't work for me. Therefore to fix this issue you should update your code from:

        .load();
    

    to

        .trigger("load");
    

    I got this fix from the following source: https://github.com/stevenwanderski/bxslider-4/pull/1024

提交回复
热议问题