第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

jQuery fadeOut().queue()配合使用的BUG

jQuery fadeOut().queue()配合使用的BUG

BIG陽 2019-03-28 14:10:11
ele.fadeOut().queue();后會(huì)影響后續(xù)對(duì)ele的fadeIn()操作。代碼如下:<head><meta charset="UTF-8"><title>Title</title><style>    .container{        width: 90%;        height: auto;    }    #fadeDiv{        width: 20vw;        height: 20vh;        background: cadetblue;    }    .button{        width: 5vw;        height: 5vw;        border-radius: 50%;        background: deepskyblue;    }</style><script src="../jquery-3.1.1.min.js"></script></head><body><div class="container">    <div id="button0" class="button">button0</div>    <div id="button1" class="button">button1</div>    <div id="fadeDiv"></div></div><script>(function () {    $("#button0").click(function () {        $("#fadeDiv").fadeOut(1000).queue(function () {            console.log("1");        });    })    $("#button1").click(function () {        $("#fadeDiv").fadeIn();    })})()</script></body>目前在用setTimeOut()代替queue(),可行。不過想問下queue()這樣用出現(xiàn)的后果是什么原因呢,辛苦各位大佬點(diǎn)解~~謝謝
查看完整描述

2 回答

?
森林海

TA貢獻(xiàn)2011條經(jīng)驗(yàn) 獲得超2個(gè)贊

$("#fadeDiv").fadeOut(1000).queue(function () {

    $(this).dequeue();

});


查看完整回答
反對(duì) 回復(fù) 2019-03-29
  • 2 回答
  • 0 關(guān)注
  • 495 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)