使用Just Bootstrap 4 Modal Plguin

我正在尝试仅使用引导程序4模式插件。
我先链接了JQuery,然后链接了JS的{​​{3}}中bootstrap/js/dist/modal.js中的插件的<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal"> Launch demo modal </button> <!-- Modal --> <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Modal title</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">&times;</span> </button> </div> <div class="modal-body"> ... </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button type="button" class="btn btn-primary">Save changes</button> </div> </div> </div> </div>

包含 modal.js 之后,它在控制台上刷新页面时给了我这个错误,并且我无法使用引导模式。

  

未捕获的TypeError:无法读取未定义的属性“ on”

这是我的模式HTML

</body>

<script src="js/vendors/jquery.min.js"> </script> <script src="js/vendors/modal.js"> </script> </body> </html> 标记上方包含JQuery&Modal.js

class Cluster(models.Model):
    name = models.CharField(...)
    ...


class ResourceRequest(Process):
    cluster = models.ForeignKey('Cluster')

    def clean(self,...):
        if self.cluster.name == 'abc':
            ...

a434637464 回答:使用Just Bootstrap 4 Modal Plguin

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3148286.html

大家都在问