StackOverflow 的“标签"文本框自动完成是如何工作的?

How does StackOverflow#39;s #39;tags#39; textbox autocomplete work?(StackOverflow 的“标签文本框自动完成是如何工作的?)
本文介绍了StackOverflow 的“标签"文本框自动完成是如何工作的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我知道他们使用的是 jQuery 插件,但我似乎无法找到他们使用的是哪个插件.特别是,我正在寻找的是具有与 SO 的自动完成功能完全相同的功能的自动完成功能,它会在输入的每个新单词时执行 AJAX 命令,并允许您从下拉列表中选择一个.

I know they're using a jQuery plugin, but I can't seem to find which one they used. In particular, what I'm looking for is autocomplete with exactly the same functionality as SO's autocomplete, where it will perform an AJAX command with each new word typed in and allow you to select one from a dropdown.

推荐答案

注意标签编辑器 现在已经完全重写,不再像原来的、带有建议下拉菜单的简单文本框了,该文本框已经装饰了该网站近三年.

Note that the tag editor has been completely re-written now, and no longer resembles the original, simple text box w/ suggestion drop-down that adorned the site for nearly three years.

如果您对新表单感兴趣,请参阅此元问题:https://meta.stackexchange.com/questions/102510/can-i-use-the-tag-textbox-script

If you're interested in the new form, see this Meta question: https://meta.stackexchange.com/questions/102510/can-i-use-the-tag-textbox-script

Autocomplete 是最初使用的插件,尽管对其进行了各种调整和自定义年.

Autocomplete is the plugin used originally, albeit with various tweaks and customizations made to it over the years.

这篇关于StackOverflow 的“标签"文本框自动完成是如何工作的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

ajax请求获取json数据并处理的实例代码 $.ajax({ type: 'GET', url: 'https://localhost:44369/UserInfo/EditUserJson',//请求数据 data: json,//传递数据 //dataType:'json/text',//预计服务器返回的类型 timeout: 3000,//请求超时的时间 //回调函数传参 suc
在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
append() 方法在被选元素的结尾(仍然在内部)插入指定内容。 语法: $(selector).append( content ) var creatPrintList = function(data){ var innerHtml = ""; for(var i =0;i data.length;i++){ innerHtml +="li class='contentLi'"; innerHtml +="a href
问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
Rails 3.1 ajax:success handling(Rails 3.1 ajax:成功处理)