[英]Drop Down menu not creating Javascript
I am creating a website using Django in which it requires drop down menu.我正在使用 Django 创建一个需要下拉菜单的网站。
obs_index.html: obs_index.html:
{% block termscondobs %}
<li>
<a href="{% url 'terms-conditions' %}" class="waves-effect">
<i class="fa fa-file-text-o"></i> <span>Terms & Conditions</span>
<i class="fa fa-angle-left float-right"></i>
</a>
<ul class="sidebar-submenu">
<li><a href="{% url 'terms-conditions' %}"><i class="zmdi zmdi-star-outline"></i> OBS T&C</a></li>
<li><a href="{% url 'terms-febs' %}"><i class="zmdi zmdi-star-outline"></i> Febs T&C</a></li>
<li><a href="{% url 'terms-febs-events' %}"><i class="zmdi zmdi-star-outline"></i> Febs Events T&C</a></li>
</ul>
</li>
{% endblock %}
But it is not creating a drop-dwon-menu.The error is Not Found: /terms/assets/js/popper.min.js
Why is it?但它并没有创建 drop-dwon- Not Found: /terms/assets/js/popper.min.js
错误是Not Found: /terms/assets/js/popper.min.js
为什么会这样?
It seems the path好像是路径
/terms/assets/js/popper.min.js /terms/assets/js/popper.min.js
is not the actual path for your js file, or the popper.min.js does not exist.不是 js 文件的实际路径,或者 popper.min.js 不存在。
You can replace你可以更换
/terms/assests/js/popper.min.js /terms/assests/js/popper.min.js
with和
https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/esm/popper.min.js https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/esm/popper.min.js
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.