BootStrap table 傳遞搜索參數

看bootStrap table文檔不難發現它有一個queryparams屬性,是向後臺傳遞參數的,默認參數已有pageSize、pageIndex等,那麼怎麼傳遞自定義的參數呢?在網上找了好多也沒有找到因而看源碼,獲得解決方法:bootstrap

function Search() {
        var name= $('#txtName').val();
        var pass= $('#txtPass').val();
        var options = $('#table').bootstrapTable('refresh', {
            query: 
            {
                Name:name,
                Pass:pass
            }
        });
    }

後臺綁定列表函數中取查詢參數:函數

string name=Request["Name"];
string pass=Request["Pass"];
相關文章
相關標籤/搜索