如果在提交表单时有jQuery延迟对象未完成,会发生什么。是否只在加载新页面时取消它们?例如:
.box{
position: relative;
height: 400px;
width: 500px;
background-color: #ccc;
border: 2px solid orange;
margin: 50px 0 0 50px;
}
.box::after{
content: " ";
width: 20px;
height: 20px;
position: absolute;
top: 10px;
left: -12px;
border-top: 2px solid #FFA500;
border-left: 2px solid #FFA500;
z-index: 1000;
background: linear-gradient(-45deg, rgba(255,255,255,0) 12px, #CCC 12px);
transform: rotate(-45deg);
}