0

我正在尝试动态添加和删除标签,就像这个 jquery 动态标签一样,除了我使用的是 jquery 1.5.2 。但是标签面板(div标签)一个接一个地添加。我发现问题出在较新版本的jquery中添加的刷新调用。在我阅读了这个这个之后,我尝试使用 tabify 。但我有一个错误说

Uncaught TypeError: Object [object Object] has no method 'tabify'

那么有没有其他选择呢?

4

1 回答 1

0

您可以尝试做一些事情来使其正常工作。

 Be ABSOLUTELY sure your script is being pulled into the page, one way to check is by using the 'sources' tab in the Chrome Debugger and searching for the file.

    Be sure that you've included the script after you've included jQuery, as it is most certainly dependant upon that.

除此之外,我检查了 API,就我所见,你肯定做的一切都是正确的。祝朋友好运!

编辑:确保关闭脚本标签。下面有一个答案表明这是解决方案。

优先级顺序必须如下:

jQuery.js
Everything that depends on jQuery.

看起来您弄错了(查看问题中的代码)。将其更改为:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.timepicker.min.js"></script>
于 2013-10-28T09:33:37.040 回答