正在用 php/ sphinx/ jquery 构建搜索引擎, 我大多数搜索引擎都在工作, 除了过滤搜索结果之外。 搜索结果没有提交过滤器, 所有结果都会显示, 然后在单击复选框时尝试使用 jquery 隐藏不匹配的结果 。
http://jsfidle.net/LEZAh/"rel="nofollow" >http://jsfidle.net/LEZAh/
what works: checking a box and have the corresponding element show, and when another box is checked add it to the allowed boxes to show.
what doesn t work: when you have more than one checkbox checked and you uncheck one of them, the corresponding element does not show.
对错误的解释表示歉意......但填充物会为自己表示感谢!