Uncaught TypeError: $(...).iziModal is not a function
at HTMLButtonElement.<anonymous> ((index):1871)
at HTMLDocument.dispatch (jquery.js:4618)
at HTMLDocument.elemData.handle (jquery.js:4302)
2.Js包的引入
<script type="text/javascript" src="{% static 'assets/js/iziModal-master/js/iziModal.js' %}"></script>
<link rel="stylesheet" type="text/css" href="{% static 'assets/js/iziModal-master/css/iziModal.min.css' %}"
3.Js 语法
<script type="text/javascript">
$(document).on('click', '.open-default', function(event) {
event.preventDefault()
var modal = $('#modals').iziModal();
modal.iziModal('open');
});
</script>