我在启用popover任何解决方案时遇到此错误,请
这是我的popover函数这有什么问题
$('#popcart').popover();
document.getElementById('popcart').setAttribute('data-bs-content', "<h5> Hello Welcome </h5>");
这是我试图更改数据内容的按钮
<button type="button" class="btn btn-secondary mx-2" animation="true" data-bs-container="body"
id="popcart" data-bs-html="true" data-bs-toggle="popover" data-bs-placement="bottom"
data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
Cart(<span id="cart">0</span>)
</button>
我最近也遇到了同样的错误,如果您确信库代码已正确导入,则可能有两个或更多jQuery实例或$function。尝试在代码顶部添加
noConflict()
函数:相关问题 更多 >
编程相关推荐