springboot怎么把数据传给前端:springboot 如何引入前端 bootstrap?
这种问题网上一搜一大堆,你可以具体找一篇文章试试,遇到问题可以针对相关问题去提问。springboot通过jar包方式引入bootstrap_个人文章 - SegmentFault 思否 这不是查查就
顺晟科技
2021-10-03 13:29:22
148
我对jQuery还是非常陌生的,我不知道为什么它不能工作。 我希望淡出使用jQuery单击的任何元素。
HTML:
<head>
<script src="https://code.jquery.com/jquery-3.6.0.js"></script>
<script src="basicFile.js" defer></script>
<title>fade Out any clicked on element</title>
</head>
<body>
<p>
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sed magnam nisi animi itaque labore tempore porro iure
amet accusamus? Eos, similique! Maxime maiores totam rem!
</p>
<div>enter code here
this is another paragraph
</div>
</body>
脚本:
$(document).ready(
$('*').on('click',
() => $(this).fadeOut(2500)
)
)
我也尝试过:
$(document).ready(
$('*').click(
() => $(this).fadeOut(2500)
)
)
顺晟科技:
$(document).on('click','#elementID', function (){
$(this).fadeOut();})
我想您需要这样的东西:
$(document).ready(function() {
$(this).click(function(event) {
$(event.target.id).fadeOut(2500);
});
});
05
2022-12
02
2022-12
02
2022-12
29
2022-11
29
2022-11
24
2022-11