jQuery版本过低,引发 e.indexOf is not a function

问题描述:

引入jQuery文件,发现控制台报错 e.indexOf is not a function。

解决方法:

把之前使用 $(window).load(function(){}) 替换成:
$(window).on('load',function(){}) 即可。