Uncaught TypeError: Cannot read property 'length' of undefined
来源:互联网 发布:淘宝版本6.0下载 编辑:程序博客网 时间:2024/05/09 18:59
1、错误描述
jquery.easyui.min.js:8311 Uncaught TypeError: Cannot read property 'length' of undefined at _5ce (jquery.easyui.min.js:8311) at show (jquery.easyui.min.js:8375) at HTMLDivElement.<anonymous> (jquery.easyui.min.js:8463) at Function.each (jquery.min.js:2) at m.fn.init.each (jquery.min.js:2) at m.fn.init.$.fn.calendar (jquery.easyui.min.js:8450) at HTMLDivElement.<anonymous> (jquery.easyui.min.js:8483) at Function.each (jquery.min.js:2) at m.fn.init.each (jquery.min.js:2) at Object.moveTo (jquery.easyui.min.js:8474)_5ce @ jquery.easyui.min.js:8311show @ jquery.easyui.min.js:8375(anonymous) @ jquery.easyui.min.js:8463each @ jquery.min.js:2each @ jquery.min.js:2$.fn.calendar @ jquery.easyui.min.js:8450(anonymous) @ jquery.easyui.min.js:8483each @ jquery.min.js:2each @ jquery.min.js:2moveTo @ jquery.easyui.min.js:8474$.fn.calendar @ jquery.easyui.min.js:8447_b32 @ jquery.easyui.min.js:14962onShowPanel @ jquery.easyui.min.js:14870onOpen @ jquery.easyui.min.js:13194cb @ jquery.easyui.min.js:3144_239 @ jquery.easyui.min.js:3134(anonymous) @ jquery.easyui.min.js:3372each @ jquery.min.js:2each @ jquery.min.js:2open @ jquery.easyui.min.js:3371$.fn.panel @ jquery.easyui.min.js:3329_a05 @ jquery.easyui.min.js:13324(anonymous) @ jquery.easyui.min.js:13481each @ jquery.min.js:2each @ jquery.min.js:2showPanel @ jquery.easyui.min.js:13480$.fn.combo @ jquery.easyui.min.js:13441_9f8 @ jquery.easyui.min.js:13241handler @ jquery.easyui.min.js:13209(anonymous) @ jquery.easyui.min.js:6920dispatch @ jquery.min.js:4r.handle @ jquery.min.js:4
2、错误原因
<!DOCTYPE html><html><head><meta charset="UTF-8"><title>switch-case语句控制函数返回值</title><link rel="stylesheet" href="../css/themes/black/easyui.css" /><link rel="stylesheet" href="../css/themes/icon.css" /><link rel="stylesheet" href="../css/demo.css" /><script type="text/javascript" src="../js/jquery.min.js" ></script><script type="text/javascript" src="../js/jquery.easyui.min.js" ></script><script>$(function(){$("#monthDate").datebox({formatter: function(date){ return date.getFullYear()+'-'+(date.getMonth()+1)+'-'+date.getDate(); }, parser: function(date){ return new Date(Date.parse(date.replace(/-/g,"/"))); }});});function dateFormatter(date){ return (date.getMonth()+1); }</script></head><body><div><input id="monthDate" class="easyui-datebox" labelPosition="top"><br><br><input type="text" id="month" /><br><br><button>动态获取月份</button></div></body></html>
3、解决办法
1 1
- Uncaught TypeError: Cannot read property 'length' of undefined
- Uncaught TypeError: Cannot read property 'length' of undefined
- Uncaught TypeError Cannot read property 'length' of undefined
- Uncaught TypeError: Cannot read property 'length' of undefined
- Uncaught TypeError: Cannot read property 'length' of undefined出现的问题
- Uncaught TypeError: Cannot read property 'length' of null
- Uncaught TypeError: Cannot read property 'length' of null
- 【ExtJS】Uncaught TypeError: Cannot read property 'length' of null
- Uncaught TypeError: Cannot read property 'length' of null
- Extjs4---Uncaught TypeError: Cannot read property ‘items’ of undefined
- 【StackFlow】Uncaught TypeError: Cannot read property 'pageCount' of undefined
- Ckeditor: Uncaught TypeError: Cannot read property 'keyCode' of undefined 解决方法
- Uncaught TypeError: Cannot read property 'msie' of undefined问题解决方案
- Uncaught TypeError: Cannot read property 'options' of undefined 错误
- 错误:Uncaught TypeError: Cannot read property 'WebSocket' of undefined
- Uncaught TypeError: Cannot read property 'value' of undefined
- Uncaught TypeError: Cannot read property 'plugin' of undefined
- react Uncaught TypeError: Cannot read property 'title' of undefined
- Struts2-11 消息处理与国际化
- Android 创建及调用自己的 ContentProvider。
- Linux-进度条
- 【3】.net MVC 使用IPrincipal进行Form登录即权限验证
- 你最美
- Uncaught TypeError: Cannot read property 'length' of undefined
- Android里Activity的IntentFilter匹配规则
- 【BZOJ 2300】 [HAOI2011]防线修建 平衡树维护凸包
- 实验楼linux学习笔记(二):用户及文件权限管理
- Framework中的TelephonyRegistry
- select、poll、epoll之间的区别总结[整理]
- linux实现进度条
- 802.11协议中的一些帧的理解
- LintCode 求逆序对