Uncaught TypeError Cannot read property 'length' of undefin

分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

               

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、解决办法

           

分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值