springboot怎么把数据传给前端:springboot 如何引入前端 bootstrap?
这种问题网上一搜一大堆,你可以具体找一篇文章试试,遇到问题可以针对相关问题去提问。springboot通过jar包方式引入bootstrap_个人文章 - SegmentFault 思否 这不是查查就
顺晟科技
2022-10-19 14:42:35
133
我已经尝试在javascript中使用jquery 9个月了,但完全没有效果。
JavaScript代码工作:
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script>
var menu3 = document.getElementById("menu3");
var menu = document.getElementById("menu");
var menu1 = document.getElementById("menu1");
var menuID = "menu";
menu3.onclick = function() {
if (menuID == "menu") {
document.getElementById("menu").id = "menu1";
menuID = "menu1";
} else {
document.getElementById("menu1").id = "menu";
menuID = "menu";
}
}
var myInterval = setInterval(function() {
if (width = window.innerWidth > 1199 || document.documentElement.clientWidth > 1199 || document.body.clientWidth > 1199) {
menuID = "menu";
document.getElementById("menu1").id = "menu";
}
}, 500);
</script>
jQuery代码不工作:
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script>
var menu3 = document.getElementById("menu3");
var menu = document.getElementById("menu");
var menu1 = document.getElementById("menu1");
var menuID = "menu";
menu3.onclick = function() {
if (menuID == "menu") {
document.getElementById("menu").id = "menu1";
menuID = "menu1";
} else {
document.getElementById("menu1").id = "menu";
menuID = "menu";
}
}
var myInterval = setInterval(function() {
if (width = window.innerWidth > 1199 || document.documentElement.clientWidth > 1199 || document.body.clientWidth > 1199) {
menuID = "menu";
document.getElementById("menu1").id = "menu";
}
}, 500);
</script>
有可能解决吗? 我尝试了所有的方法,但在我看来jquery已经丢失了。
顺晟科技:
我不知道您为什么需要这个解决方案,但它就在这里,它有效。
05
2022-12
02
2022-12
02
2022-12
29
2022-11
29
2022-11
24
2022-11