在js中加入下面的代码即可(过程中可能会因为缓存问题,显示无反应,大家可以清空缓存以后,再试试)
<script>
$('body').on('hidden.bs.modal', '.modal', function () {
$(this).removeData('bs.modal');
});
</script>
在js中加入下面的代码即可(过程中可能会因为缓存问题,显示无反应,大家可以清空缓存以后,再试试)
<script>
$('body').on('hidden.bs.modal', '.modal', function () {
$(this).removeData('bs.modal');
});
</script>
一.Vue文件內容 <template> </template> <script> </script> <style> </style>