本文介绍了数据表smartsearch v否智能搜索v正则表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给出此数据表示例,并选择regex,smartserach或不使用两个(regex,smartserach)智能搜索有什么作用?

Given this datatable example with the option of regex, smartserach or none of the the two(regex, smartserach) what does smart search do?

例如在名称"列下:
在搜索中键入Ai会返回4个具有或不具有智能搜索标记的条目. 任何人都可以提供一个示例,让我看到智能搜索是否被打勾吗?

For instance under column Name:
typing Ai in the search returns 4 entries with or without smart search ticked. Can anyone provide an example where I can see the difference in smart search ticked or not?

例如在名称"列下:
键入^[A]将返回3个带有正则表达式标记的条目.在此示例中,是否在智能搜索上打勾似乎没有什么不同. 再次,有人可以提供一个示例,让我看到是否在智能搜索中打上了正则表达式打勾的区别吗?

For instance under column Name:
typing ^[A] will return 3 entries with regex ticked. ticking smart search or not does not seem to make a difference in this example. Again, can anyone provide an example where I can see the difference in smart search ticked or not with regex ticked?

链接是可能有用的文档

来自此处)表明,进行智能搜索可能不好和启用正则表达式:Note that to perform a smart search, DataTables uses regular expressions, so if enable regular expressions using the second parameter to this method, you will likely want to disable smart searching as the two regular expressions might otherwise conflict and cause unexpected results.

from here suggests it might not be good to have smart search and regex enabled: Note that to perform a smart search, DataTables uses regular expressions, so if enable regular expressions using the second parameter to this method, you will likely want to disable smart searching as the two regular expressions might otherwise conflict and cause unexpected results.

推荐答案

请参见 search.smart 选项以获取更多详细信息.

See search.smart option for more details.

此示例中,在位置列中输入Junior Author将找到Junior Technical Author位置启用智能"模式时.禁用智能"模式后,将找不到任何内容.

In this example typing Junior Author in Position column will find Junior Technical Author position when "smart" mode enabled. With "smart" mode disabled nothing will be found.

这篇关于数据表smartsearch v否智能搜索v正则表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 05:18