.dequeue( [queueName ] )
.dequeue( [queueName ] )
설명 : 일치하는 요소에 대해 대기열에서 다음 함수를 실행합니다.
.dequeue ([queueName])
queueName
유형 : 문자열
대기열의 이름을 포함하는 문자열. 기본값 fx은 표준 효과 대기열입니다.
예:
dequeue를 사용하여 큐가 계속 이동하도록하는 사용자 정의 큐 기능을 종료하십시오.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>dequeue demo</title>
<style>
div {
margin: 3px;
width: 50px;
position: absolute;
height: 50px;
left: 10px;
top: 30px;
background-color: yellow;
}
div.red {
background-color: red;
}
</style>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
<button>Start</button>
<div></div>
<script>
$( "button" ).click(function() {
$( "div" )
.animate({ left:"+=200px" }, 2000 )
.animate({ top:"0px" }, 600 )
.queue(function() {
$( this ).toggleClass( "red" ).dequeue();
})
.animate({ left:"10px", top:"30px" }, 700 );
});
</script>
</body>
</html>
게시판 목록
개발자팁
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 4646 | PHP | 8년 전 | 2141 | ||
| 4645 | PHP | 8년 전 | 2136 | ||
| 4644 | PHP | 8년 전 | 1636 | ||
| 4643 | PHP | 8년 전 | 1703 | ||
| 4642 | PHP | 8년 전 | 1807 | ||
| 4641 | PHP | 8년 전 | 1878 | ||
| 4640 | PHP | 8년 전 | 2039 | ||
| 4639 | PHP | 8년 전 | 1690 | ||
| 4638 | PHP | 8년 전 | 1604 | ||
| 4637 | PHP | 8년 전 | 1838 | ||
| 4636 | PHP | 8년 전 | 1560 | ||
| 4635 | Mobile | 8년 전 | 10197 | ||
| 4634 | PHP | 8년 전 | 2129 | ||
| 4633 | PHP | 8년 전 | 1715 | ||
| 4632 | PHP | 8년 전 | 1994 | ||
| 4631 | OS | 8년 전 | 7133 | ||
| 4630 | PHP | 8년 전 | 2027 | ||
| 4629 | PHP | 8년 전 | 2070 | ||
| 4628 | PHP | 8년 전 | 5442 | ||
| 4627 | MySQL | 8년 전 | 4244 | ||
| 4626 | OS |
|
8년 전 | 3093 | |
| 4625 | PHP | 8년 전 | 2315 | ||
| 4624 | PHP | 8년 전 | 2213 | ||
| 4623 | PHP | 8년 전 | 1872 | ||
| 4622 | PHP | 8년 전 | 2277 | ||
| 4621 | PHP | 8년 전 | 2027 | ||
| 4620 | PHP | 8년 전 | 2093 | ||
| 4619 | 기타 | 8년 전 | 3826 | ||
| 4618 | PHP | 8년 전 | 2671 | ||
| 4617 | PHP | 8년 전 | 1870 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기