开发者

Modifying the tablefilter jQuery plugin

开发者 https://www.devze.com 2023-04-04 13:13 出处:网络
I need to modify this plug-in to support not(!), (!=), (AND), (OR) operators and add 开发者_运维技巧some range filtering. I tried to add an elseif statement on line 412 but it doesn\'t work. Here is t

I need to modify this plug-in to support not(!), (!=), (AND), (OR) operators and add 开发者_运维技巧some range filtering. I tried to add an elseif statement on line 412 but it doesn't work. Here is the code that I've added.

else if(/!/.test(SearchArgs[j]) && !isNaN(num_cell_data))
{
    num_cell_data != parseFloat(SearchArgs[j].replace(/!/,"")) ?
    occurence[j] = true :
    occurence[j] = false;
}


num_cell_data could be integer or string, try add parseFloat to num_cell_data:

parseFloat(num_cell_data) != parseFloat(SearchArgs[j].replace(/!/,"")) ? ...
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号