哪位大神可以帮我解决一下这个问题,小弟感激不尽
easyui吧
全部回复
仅看楼主
level 1
紫色枫飞童鞋
楼主
公司项目需要使用easyui做一个简单工作流,我想在分页查询的时候把这个条件部的查询条件带到参数中去,但我这么写了以后前台总是不错Uncaught TypeError: Cannot read property 'combo' of undefined。有大神可以帮我解决下吗
2015年05月24日 09点05分
1
level 1
紫色枫飞童鞋
楼主
自己顶起来
2015年05月24日 12点05分
2
level 8
net533
combobox存在?
2015年05月24日 14点05分
3
紫色枫飞童鞋
combobox肯定是存在的,我试了一下,页面在初始化的时候,直接去取combobox,或者datebox的值,就会报错。
2015年05月24日 14点05分
net533
回复
��ɫ����ͯЬ
:你写的错误提示是combo,
2015年05月24日 14点05分
紫色枫飞童鞋
@net533
combobox本来就是继承的combo,试验过,combo('getValue')和combobox('getValue')都是能取得值的。但初始化的时候不知道为何就取不了
2015年05月24日 14点05分
level 1
紫色枫飞童鞋
楼主
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Basic DateBox - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css"
href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="../demo.css">
<script type="text/javascript" src="../../jquery.min.js"></script>
<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
<h2>Basic DateBox</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Click the calendar image on the right side.</div>
</div>
<div style="margin: 10px 0;"></div>
<input class="easyui-datebox" id="aa"></input>
</body>
<script>
$("#aa").datebox("getValue");
</script>
</html>
谁能告诉我,这样为什么会报错,这是easyui中的demo,我给datebox控件取了下值就报错了。
2015年05月24日 14点05分
4
level 8
net533
加alert看返回日期没。
你写在js中的语句,是获取了,但看不到
2015年05月25日 00点05分
5
紫色枫飞童鞋
我上面的写法,页面打开时前台已经报错了。不过我现在问题解决了,是因为这个控件没有在页面初始化时候定义。我后来把这句话卸载$(function(){});里面就可以解决了。非常感谢你的帮助
2015年05月25日 00点05分
level 9
Mr_Nestor
让代码在HTML加载完成后再去加载。
不然找不到dom节点肯定会出错。
--来24k纯屌丝版魅蓝note,不要问我是不是蓝色~
2015年05月26日 01点05分
6
紫色枫飞童鞋
非常感谢,确实是如你所说,学习了
2015年05月27日 01点05分
1