用于分隔标签的插件(如 stackoverflow 的输入标签接口)

我正在寻找一个类似于 Stack Overflow 的 tags 输入界面的插件或简单脚本.

I'm looking for a plugin or simple script that behaves like Stack Overflow's tags input interface.

特别是我需要将人们写的单个单词(标签)分开.

In particular I need to separate the single words (tags) that people write.

推荐答案

有很多:

  1. http://code.drewwilson.com/entry/autosuggest-jquery-plugin (断开的链接 github链接)
  2. http://bassistance.de/jquery-plugins/jquery-plugin-自动完成/
  3. http://plugins.jquery.com/project/tag-it (链接失效 github链接)
  4. http://plugins.jquery.com/project/jquerytag(断开的链接)

如果您正在寻找风格化且现成的解决方案,我建议您使用第一个选项.

如果您正在寻找更灵活、更完整的解决方案,那么第二种解决方案可能更合适.

If you are looking for a more flexible and complete solution, the second solution is probably a good fit.

相关文章