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(){})在高版本中已经废弃,
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(){});替代
相关文章推荐
- 关于Uncaught TypeError: type is not a function at HTMLAnchorElement.onclick (indexjsp:71)的解决
- jQuery 异常 Uncaught TypeError: url.indexOf is not a function
- TypeError: url.indexOf is not a function ,使用jquery load()出现错误
- 使用vue时Module build failed: TypeError: this._init is not a function错误的解决方法
- jquery.js里面报错Uncaught TypeError: a.indexOf is not a function
- Sea.js出现Uncaught TypeError: object is not a function的解决方法
- jQuery.Deferred exception: a.indexOf is not a function TypeError: a.indexOf is not a function
- jQuery Validation插件onfocosout/onkeyup出错的解决方法[Uncaught TypeError: undefined is not a function中文资料不好找]
- jquery中Uncaught TypeError: $(...).ajaxUpload is not a function(…)错误解决方法
- chrome浏览器Uncaught TypeError: object is not a function问题解决
- 解决Uncaught TypeError: object is not a function
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- [置顶] 解决vux 引入组件时Error in render function: "TypeError: _vm.$t is not a function"问题
- Uncaught TypeError: $.cookie is not a function 解决办法
- Uncaught TypeError: XXX is not a function解决
- Uncaught TypeError: $(...).Validform is not a function 如何解决,以及其他方式替换jquery功能
- TypeError: newRawData.forEach is not a function问题解决
- python2.7web代码用python3.6运行时,浏览器发送请求报错TypeError: Object of type 'bytes' is not JSON serializable的解决办法
- Uncaught TypeErroe: Uncaught TypeError: Cannot call method 'push' of undefined 和 Uncaught TypeError: undefined is not a function
- Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node 解决办法