zoukankan      html  css  js  c++  java
  • jquery easyui datagrid 动态改变url地址中的参数值

    1. 方法一:(改变后加载当前页面内容)

     

    //第一次设定

    $('#telGrid').datagrid({
            url:'p_n_list.php?act=getAjax_list&s_key=400电话 &website=http://www.my400800.cn ',
            nowrap: false,
            striped: true,
            collapsible:true,
            pagination:true,
            rownumbers:true,
            pagination:true,
            toolbar:[{
                    text:'新增',
                    iconCls:'icon-add',
                    handler:function(){
                        //$('#btnsave').linkbutton('enable');
                        //alert('add')
                        addRow();
                    }
                },'-',{
                    text:'修改'
                    ,
                    handler:function(){
                        updateRow();
                      
                    }
                },'-',{
                    text:'删除',
                    iconCls:'icon-remove',
                    handler:function(){
                     
                        getSelections();
                    }
                },'-',{
                    text:'查询',
                    iconCls:'icon-search'
                    ,
                    handler:function(){
                        $('#searchW').window({
                            title: '设定查询条件',
                            300,
                            modal: true,
                            shadow: false,
                            closed: false,
                            height: 200,
                            close:function(){
                                alert('data');
                            }
                        });
                    }
                }]
        });

     

      $('#telGrid').datagrid('reload', {
                s_key :800电话
            });

    方法2:

    $
    ('#telGrid').datagrid({url:'http://www.my400800.cn',    
    queryParams:{s_key:'400',  website:'http://www.my400800.cn/LianXiWoMen.html' }
    })
    ;
    
  • 相关阅读:
    pandas读写csv最简代码
    csv.read和csv.write
    交叉验证
    纪念被win10大更新搞崩的vbox
    c++中关于保留小数的小总结
    Java里的值传递与“引用传递”——一些想法
    Eclipse使用遇到的一些问题及解决方案(持续更新)
    Pray for 京阿尼——愿逝者安息,伤者早日康复
    洛谷p1208—混合牛奶【典型贪心】(关联排序小技巧)
    洛谷p1217—回文质数(默默宣传打表法)
  • 原文地址:https://www.cnblogs.com/jishu/p/2116131.html
Copyright © 2011-2022 走看看