gpt4 book ai didi

jquery - jqgrid问题:Where is the "filter" param?

转载 作者:行者123 更新时间:2023-12-01 05:10:04 26 4
gpt4 key购买 nike

我目前正在查看有关高级搜索的 jqgrid 文档,特别是它附带的 search_adv.php 文件。

我注意到以下代码行

$searchstr = Strip($_REQUEST['filters']);

但是,当我查看 jqgrid 帖子的 firebug 输出时,我看到了

_search         true
nd 1270148130165
page 1
rows 10
searchField income_types_desc
searchOper eq
searchString 5
sidx income_types_desc
sord asc

“过滤器”参数到底在哪里?

最佳答案

当您执行高级 (allowMultiple:true) 搜索时,将使用 filter 参数。它最终包含一个 JSON 对象,如下所示:

filters = 
{"groupOp":"AND",
"rules":[
{"field":"invdate","op":"ge","data":"2007-10-06"},
{"field":"invdate","op":"le","data":"2007-10-20"},
{"field":"name","op":"bw","data":"Client 3"}
]
}

http://www.trirand.com/jqgridwiki/doku.php?id=wiki:advanced_searching

关于jquery - jqgrid问题:Where is the "filter" param?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2562980/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com