我想模仿 Visual Studio 的“导航到”搜索行为。除了常规文本之外%searchTerm%,它还搜索驼峰式首字母,而不是使用通配符查找 a 的常规搜索。我将提供一些屏幕片段来说明。
我如何允许这样的匹配?它看起来非常先进,我不知道从哪里开始用 Javascript 开发它?
使用如上图所示的列表,我该如何匹配。这个问题并不是关于下拉列表自动完成,更多的是关于匹配。我将有大约 300 个条目要搜索。
列出图像中的项目
"propertyAddress",
"propertyKey",
"propertyRef",
"Project_Readme.html",
"PropertyController",
"PropertyDetailsViewModel.cs",
"PropertyDetailsViewModel",
"PropertyDeletePromptViewModel",
"PropertyIndexViewModel",
"PropertyViewModels.cs",
"ThirdPartyViewModels",
"PropertyThirdPartyViewModel"




