jQuery stop() နည်းလမ်း
ဥပမာ
လက်ရှိလုပ်ဆောင်နေသည့် ကာတွန်းကို ရပ်လိုက်ပါ-
$("#stop").click(function(){
$("div").stop();
});
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
stop() နည်းလမ်းသည် ရွေးချယ်ထားသော အစိတ်အပိုင်းများအတွက် လက်ရှိလုပ်ဆောင်နေသည့် ကာတွန်းကို ရပ်တန့်စေသည်။
အထားအသို
$(selector).stop(stopAll,goToEnd)
Parameter | Description |
---|---|
stopAll | Optional. A Boolean value specifying whether or not to stop the queued animations as well. Default is false |
goToEnd | Optional. A Boolean value specifying whether or not to complete all animations immediately. Default is false |
သင်ကိုယ်တိုင်စမ်းကြည့်ပါ - ဥပမာများ
ကို ရပ်တန့်နည်း။
ပြီးအောင်လုပ်နည်း ကာတွန်းအားလုံးကို ချက်ခြင်းပြီးအောင်လုပ်နည်း။