gpt4 book ai didi

javascript - Bootstrap 错误的 token 字段

转载 作者:行者123 更新时间:2023-11-29 21:50:23 27 4
gpt4 key购买 nike

我在尝试将 Tokenfield 用于 Bootstrap 时遇到以下错误:

Uncaught TypeError: undefined is not a function

有人知道怎么解决吗?错误发生在(大约第 180 行):

this.$input.autocomplete(r)

this.$input 指向包含输入字段的数组,但 this.$input.autocomplete 未定义(从 Chrome 控制台调试时)。

我试过添加 noconflict(如讨论的 here ),但那没有用。

这是被操纵的 html:

<div class="tokenfield form-control" style="width: 100%;">
<input id="hident15" name="f14" type="text" required="" value="" class="form-control" tabindex="-1" style="position: absolute; left: -10000px;">
<input type="text" tabindex="-1" style="position: absolute; left: -10000px;">
<input type="text" class="token-input" autocomplete="off" placeholder="" id="hident15-tokenfield" tabindex="0" style="min-width: 60px; width: 333px;">
</div>

最佳答案

事实证明 jQuery UI 也是一个依赖项。这在文档中并不明显。

关于javascript - Bootstrap 错误的 token 字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29583253/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com