springboot怎么把数据传给前端:springboot 如何引入前端 bootstrap?
这种问题网上一搜一大堆,你可以具体找一篇文章试试,遇到问题可以针对相关问题去提问。springboot通过jar包方式引入bootstrap_个人文章 - SegmentFault 思否 这不是查查就
顺晟科技
2022-10-18 12:39:27
183
请问什么可能是错误的,我没有得到任何错误在铬控制台
HTML
<代码><;DIV类=";包装器";>;<;I ID=";重复";类=";Fas FA-STOP-CIRCLE";>;<;/I>;<;/DIV>;
JavaScript
<div class="wrapper">
<i id="repeat" class="fas fa-stop-circle"></i>
</div>
顺晟科技:
此代码中没有会更改类的逻辑,因此case语句的结果将始终匹配const wrapper = document.querySelector('.wrapper')
const repeatBtn = wrapper.querySelector('#repeat')
repeatBtn.addEventListener('click', () => {
let getClass = repeatBtn.className;
switch(getClass){
case "fas fa-redo":
repeatBtn.className = "fas fa-redo";
break;
case "fas fa-stop-circle":
repeatBtn.className = "fas fa-stop-circle";
break;
case "fas fa-random":
repeatBtn.className = "fas fa-random";
break;
}
})
。case "fas fa-stop-circle"
的每个赋值都将类设置为与大小写匹配的完全相同的字符串。
05
2022-12
02
2022-12
02
2022-12
29
2022-11
29
2022-11
24
2022-11