您的位置:首页 > 其它

TypeError: e.indexOf is not a function解决方法

2018-02-24 09:49 1756 查看
This error m
4000
ight be caused by jquery event aliases like .load, .unload or .error deprecated since jQuery 1.8. Look for these aliases in your code and replace them with .on() to register listeners instead. Example:

$(window).load(function(){...});

becomes:

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

大概意思:$(window).load(function(){})在高版本中已经废弃,
请用:$(window).on('load',function(){});替代
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐