# @adactive/bootstrap-tagsinput 中文文档

规范地址：https://npmcn.com/package/%40adactive/bootstrap-tagsinput/

版本：0\.8\.2
npm 元数据更新时间：2025-12-18T09:12:34.040Z
中文译文更新时间：2026-11-05T21:51:23.657Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40adactive/bootstrap-tagsinput
原文对照：https://npmcn.com/package/%40adactive/bootstrap-tagsinput/?lang=original
项目主页：http://timschlechter.github.io/bootstrap-tagsinput/examples/
源码仓库：https://github.com/timschlechter/bootstrap-tagsinput

## 关键信息（来自 npm 元数据）

- 模块格式：CommonJS
- TypeScript 类型：未声明
- 运行依赖：0 个
- 首次发布：2017-11-28T02:02:44.222Z
- 最新版本发布：2017-11-28T02:02:44.222Z
- 近 30 天下载量：15231（2026-10-05 至 2026-11-03，npm 官方下载统计）
- 已发布版本数：1（近 12 个月 0 个）

## 中文简介

j 查询插件提供了用于管理标签的 Twitter Bootstrap 用户界面 .

## 安装

```sh
npm install @adactive/bootstrap-tagsinput
```

也可以使用：`pnpm add @adactive/bootstrap-tagsinput`、`yarn add @adactive/bootstrap-tagsinput`、`bun add @adactive/bootstrap-tagsinput`

## README

# 启动标签输入 [![Build Status](https://travis-ci.org/bootstrap-tagsinput/bootstrap-tagsinput.svg?branch=master)](https://travis-ci.org/bootstrap-tagsinput/bootstrap-tagsinput)

Bootstrap Tags Introduction是一个jQuery插件,为管理标签提供Twitter Bootstrap用户界面.

当前稳定版本 : **第0.8.0条**

## 使用量

实例可见 [这里](http://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/)。 。 。 .

## 特征

-   作为标记的对象
-   真多值
-   类型头
-   为靴子2.3.2和3所设计

### 作为标记的对象

不只是支持使用字符串! 这意味着你可以使用不同的值 对于标签的标签和值。 每个标记还包含对象的引用 用来创造万物的 `tagsinput('items')` a 一个 矩阵.

### 真正的多值支持

其他执行只是将值压缩到逗号分隔的字符串上. 其结果是 `val()` 返回此字符串, 当 提交表单时,请求中只发送一个大而整齐的值.

Bootstrap Tags 输入提供了真正的多值支持. 就用一个 `<select multiple />` 作为您的输入元素,以及 `val()` 将返回标记值的数组。 提交时 窗体,将随请求发送一系列数值.

### 类型头支持

与 Twitter bootstraps 的 2.3.2 typeahead相融合,或在使用 Bootstrap 3 时使用自定义的typeahead .

## 发展

安装依赖性 :

npm install
grunt install

测试 :

grunt test

构建 :

grunt build

当前库版本 :

-   靴子: 3.3.5
-   j 查询: 2.1.4
-   类型头:0.11.1

图书馆进行测试 **图书馆** 目录.

## 历史

-   0.8.0 (中文(简体) )
    -   [在“添加”、“移动”、“全部移动”后添加“更改”事件的可能性](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/pull/429)
    -   [请在非小版本的标题中添加版本 .](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/issues/438)
-   0.7.1 (中文(简体) )
    -   [允许复制不工作](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/issues/419)
    -   [当键头输入放松焦点时会出现标记文本](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/issues/386)
    -   [删除重复方法 `removeAll` 手动](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/pull/427)
-   0.7.0 (简体中文)
    -   [.tt-menu等样式应默认列入靴子-tagsinput.cs](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/issues/426)
    -   [当用作分隔符时, 逗号字符会结转到新的标签输入](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/issues/422)
    -   [正在复制多选项中的电子邮件](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/issues/399)
    -   [“ 项目添加” 事件在装入页面时运行 !](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/issues/369)
-   0.6.1 (中文(简体) )
    -   [源地图修正](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/issues/371)
-   0.6.0 (中文(简体) )
    -   [如果字段为空, 允许按下输入时提交格式 。 由选项控制](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/issues/368)
    -   [设置不同或多个划界人的能力](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/issues/397)
    -   [当字段已经空出时不再触发项目](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/issues/405)
-   0.5 (韩语)
    -   [在“ 添加” 和“ 移出” 方法中添加了可选参数 3](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/pull/298)
-   0.4 (中文(简体) )
    -   [使用 Bootstrap 3 时固定打字头](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/pull/73)
-   0.3.13 (中文(简体) )
    -   [\# 5: 原始输入/ 选择的触发事件](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/issues/5)
    -   @janvt、@rlidwka和@kuraga:谢谢你帮我!
-   0.3.9 (韩语)
    -   [\# 48: 输入第二个字符时, 键入前方](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/issues/48)
-   0.3.8 (中文(简体) )
    -   [\# 43: 添加占位符支持](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/pull/43)
    -   [#46: ie 8相容性, 替换索引Of方法](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/pull/46)
-   0.3.7 (单位:千美元)
    -   [\# 39: 重复输入时闪出](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/issues/39)
-   0.3.6 (中文(简体) )
    -   [\# 34: 重装文件出错](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/issues/34)
-   0.3.5 (中文(简体) )
    -   [\# 10: 确认键选项](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/issues/10)
-   0.3.4 (中文(简体) )
    -   [\# 24: 添加 bs Tags Input 角指令 & 例如 靴子夹3 有类型ahea...](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/pull/24)
    -   [\# 28: 限制标签数量, 启用/ 无法输入](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/pull/28)
    -   [\# 33: 在检查值存在时避免与其他选择冲突](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/pull/33)

## 许可证

这个项目的许可证根据 [麻省理工学院](https://raw.github.com/bootstrap-tagsinput/bootstrap-tagsinput/master/LICENSE "Read more about the MIT license")。 。 。 .

## 常见问题

### @adactive/bootstrap-tagsinput 是什么？

j 查询插件提供了用于管理标签的 Twitter Bootstrap 用户界面 \.

### 如何安装 @adactive/bootstrap-tagsinput？

在项目目录运行 npm install @adactive/bootstrap-tagsinput，或使用 pnpm add / yarn add / bun add。

### @adactive/bootstrap-tagsinput 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/adactive\_\_bootstrap-tagsinput 是否存在。

### @adactive/bootstrap-tagsinput 支持 ESM 还是 CommonJS？

以 CommonJS 形式发布，可以直接 require\(\)；在 ES Module 项目中也可以用 import 引入（Node\.js 会把 module\.exports 作为默认导出）。

### @adactive/bootstrap-tagsinput 可以商用吗？

@adactive/bootstrap-tagsinput 使用 MIT 许可。宽松许可：允许商业使用、修改和再分发，通常只需在分发时保留原版权与许可声明。以上为概括，不构成法律意见，请以许可原文为准。

### @adactive/bootstrap-tagsinput 的下载量有多少？

根据 npm 官方下载统计，@adactive/bootstrap-tagsinput 在 2026/10/05 – 2026/11/03 这 30 天内被下载 15,231 次，日均约 508 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @adactive/bootstrap-tagsinput 还在维护吗？

最新版本 0\.8\.2 发布于 2017/11/28（8 年前）；至今共发布 1 个版本，其中过去 12 个月发布了 0 个；首次发布于 2017/11/28。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

