我正在使用josen的Chosen插件,并希望搜索行为改变一点(单选).仅搜索会导致搜索字符串中单词的开头匹配的匹配.我想扩展这个也用斜线和括号后的单词.
例如:搜索字符串:" second "与项目" first/second "或" first(second) " 不匹配.
我怀疑这只是通过向构造函数添加选项而变化,但我愿意更改/硬编码源脚本.
选择:https://github.com/harvesthq/chosen
jquery jquery-plugins
jquery ×1
jquery-plugins ×1