.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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 4796 | jQuery | 8년 전 | 1540 | ||
| 4795 | jQuery | 8년 전 | 1444 | ||
| 4794 | jQuery | 8년 전 | 1568 | ||
| 4793 | jQuery | 8년 전 | 1622 | ||
| 4792 | jQuery | 8년 전 | 1638 | ||
| 4791 | jQuery | 8년 전 | 1797 | ||
| 4790 | jQuery | 8년 전 | 1737 | ||
| 4789 | jQuery | 8년 전 | 1600 | ||
| 4788 | jQuery | 8년 전 | 1661 | ||
| 4787 | jQuery | 8년 전 | 1476 | ||
| 4786 | jQuery | 8년 전 | 1436 | ||
| 4785 | jQuery | 8년 전 | 1648 | ||
| 4784 | jQuery | 8년 전 | 1533 | ||
| 4783 | jQuery | 8년 전 | 1237 | ||
| 4782 | jQuery | 8년 전 | 1605 | ||
| 4781 | jQuery | 8년 전 | 1344 | ||
| 4780 | jQuery | 8년 전 | 1578 | ||
| 4779 | jQuery | 8년 전 | 1988 | ||
| 4778 | jQuery | 8년 전 | 1963 | ||
| 4777 | jQuery | 8년 전 | 1535 | ||
| 4776 | jQuery | 8년 전 | 1589 | ||
| 4775 | jQuery | 8년 전 | 1976 | ||
| 4774 | jQuery | 8년 전 | 1491 | ||
| 4773 | jQuery | 8년 전 | 1417 | ||
| 4772 | jQuery | 8년 전 | 2206 | ||
| 4771 | jQuery | 8년 전 | 3622 | ||
| 4770 | PHP | 8년 전 | 5586 | ||
| 4769 | 기타 | 8년 전 | 1967 | ||
| 4768 | 기타 | 8년 전 | 1785 | ||
| 4767 | 기타 | 8년 전 | 2074 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기