jQuery 异常 Uncaught TypeError: url.indexOf is not a function
来源:互联网 发布:荣之联 数据分析 编辑:程序博客网 时间:2024/06/13 07:23
背景:闲来无事,觉得框架用的jq版本太低了,特地去github上下了最新的发布版本并更新
异常原因:官方文档上说:.load, .unload, and .error, deprecated since jQuery 1.8, are no more. Use .on() to register listeners.
解决方法:将
$(window).load(function() { ... });换成
$(window).on('load', function() { ... });
阅读全文
0 0
- jQuery 异常 Uncaught TypeError: url.indexOf is not a function
- jquery.js里面报错Uncaught TypeError: a.indexOf is not a function
- js异常Uncaught TypeError: $(...).datagrid is not a function
- Backbone 或 jQuery 出错,异常:Uncaught TypeError: object is not a function
- 【JQuery】sortable.js Uncaught TypeError $(...).sortable is not a function
- Uncaught TypeError: jQuery.handleError is not a function
- Uncaught TypeError: undefined is not a function
- Uncaught TypeError: string is not a function
- Uncaught TypeError: object is not a function
- Uncaught TypeError: undefined is not a function
- Uncaught TypeError: undefined is not a function
- Uncaught TypeError: object is not a function
- Uncaught TypeError: boolean is not a function
- Uncaught TypeError: $(...).appendChild is not a function
- Uncaught TypeError: sum is not a function
- Uncaught TypeError: search is not a function
- Uncaught TypeError: $(...).Validform is not a function
- Uncaught TypeError: $(...).on is not a function
- oracle rac及单实例开启归档
- USB Audio Class (UAC) 分析
- 【区块链】区块链的诗和远方
- ios11内部升级不自动退出程序问题(手动正常推出程序,exit() )
- TensorFlow下构建高性能神经网络模型的最佳实践
- jQuery 异常 Uncaught TypeError: url.indexOf is not a function
- %notfound的理解
- 广告联盟中CPC、CPS、CPA、CPM、CPV广告有什么区别
- 返回数组某个元素的值和地址
- linux makefile的使用
- php扩展开发---设置常量
- 大型网站架构演化发展历程
- VUE使用指南
- 【AI-CPS OS】中端市场切入核心企业的供应链金融信用溢价模型