springboot怎么把数据传给前端:springboot 如何引入前端 bootstrap?
这种问题网上一搜一大堆,你可以具体找一篇文章试试,遇到问题可以针对相关问题去提问。springboot通过jar包方式引入bootstrap_个人文章 - SegmentFault 思否 这不是查查就
顺晟科技
2022-10-19 11:52:06
103
我对编码是新手,希望有人能帮助理解我哪里出错了。我有一个问题,得到一个模式卡弹出触发从一个NAVBAR-Item。到目前为止,我所尝试的一切都会触发顶部菜单项的模式。下拉菜单上的每个navbar-items都将有一个指向模态卡的链接。 提前感谢您的帮助!!
顺晟科技:
您将模式定位在顶层菜单上,这是错误的,因为没有id为“modal”的元素。 您需要在您的菜单项中这样做,因为那里是您的模式的id,不需要。 因此,您的代码如下所示:
const item = document.querySelector(".navbar-item");
const modalBg = document.querySelector('.modal-background');
const modal = document.querySelector('.modal');
item.addEventListener('click', () => {
modal.classList.add('is-active');
});
modalBg.addEventListener('click', () => {
modal.classList.remove('is-active');
});
05
2022-12
02
2022-12
02
2022-12
29
2022-11
29
2022-11
24
2022-11