jquery.easyui.min.js:12401 Uncaught TypeError: Cannot read property 'combo' of undefined jquery.easyui.min.js:12401

2023-03-10,,

踩坑中成长!

jquery1.4.1升级到1.4.3 点击添加报错。

一步步调试js,发现是combox使用问题。

前端报错,未声明,js是easyui的所以只有jsp和js用法问题。看了官方用法,瞬间明白。

js:

alert("开始执行表单!");
var cc=$('#cc').combobox('getValue');

html:

<td><input type="text" id="cc" name="dept" style="width:150px;" /></td>

原因:用法不规范,jsp中 1.4.1 这样写可以运行。1.4.3这样写就不对了。

正确写法:<input id="cc" class="easyui-combobox" name="dept"

附上手册网址

http://www.jeasyui.net/plugins/169.html

jquery.easyui.min.js:12401 Uncaught TypeError: Cannot read property 'combo' of undefined jquery.easyui.min.js:12401的相关教程结束。

《jquery.easyui.min.js:12401 Uncaught TypeError: Cannot read property 'combo' of undefined jquery.easyui.min.js:12401.doc》

下载本文的Word格式文档,以方便收藏与打印。