解决方案 »

  1.   

    点击查询的时候再执行$('#xxoo').datagrid('reload',{st:$('开始日期选择器').datebox('getValue'),et:$('结束日期选择器').datebox('getValue')});你的应该是datebox组件,如果不行改成对应的组件名称
      

  2.   

    改成这样后,显示重新加载数据,但显示的内容却没变
    <form name="f1" action="outlets_init.php"  method="post" >
    <input type="text" class="easyui-datebox" id="bt" name="bt" value=<?php echo date('Y-m-d',strtotime('-7 day'))?>>
    --to--<input type="text" class="easyui-datebox" id="et" name='et' value=<?php echo date('Y-m-d',time())?>>
    <input type="button" id="but"  value="go"  >
    </form>
    <br>
    <script >
    jQuery(document).ready(function(){
        $('#but').click(function(){  
        $('#xxoo').datagrid('reload',{st:$('#bt').datebox('getValue'),et:$('#et').datebox('getValue')});
         });});
    </script>
      

  3.   

    改成这样后,显示重新加载数据,但显示的内容却没变
    <form name="f1" action="outlets_init.php"  method="post" >
    <input type="text" class="easyui-datebox" id="bt" name="bt" value=<?php echo date('Y-m-d',strtotime('-7 day'))?>>
    --to--<input type="text" class="easyui-datebox" id="et" name='et' value=<?php echo date('Y-m-d',time())?>>
    <input type="button" id="but"  value="go"  >
    </form>
    <br>
    <script >
    jQuery(document).ready(function(){
        $('#but').click(function(){  
        $('#xxoo').datagrid('reload',{st:$('#bt').datebox('getValue'),et:$('#et').datebox('getValue')});
         });});
    </script>
    alert能正确弹出$('#bt').datebox('getValue')的值,是不是传到后台的过程有问题?
      

  4.   

    参数搞错了,你的是bt,我写成st了,自己要对比下