簡體   English   中英

未捕獲的TypeError:對象[object Object]沒有方法'tagsInput'(匿名函數)

[英]Uncaught TypeError: Object [object Object] has no method 'tagsInput' (anonymous function)

我想

我導入了jscss文件,並且確定它們已加載到頁面中。

在頁面本身中,我正在使用:

<script>
$('#findprofiles').tagsInput({
    width: 'auto',
    autocomplete_url:'<?=base_url()?>loadajax/find_people/brandon'
});
</script>

反對我的意見

<input type="text" id="findprofiles" />

但我得到了錯誤

Uncaught TypeError: Object [object Object] has no method 'tagsInput' (anonymous function)

您會看到此錯誤,因為在jQuery對象中沒有按預期的方式擴展tagsInput 您的網絡瀏覽器未正確加載tagsInput庫(檢查控制台中的HTTP錯誤或JavaScript錯誤),或者您使用的jQuery版本在某種程度上不兼容(可能還通過安慰。)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM