jQuery delay() နည်းလမ်း
ဥပမာ
မတူညီသော <div> ဒြပ်စင်များကို နှောင့်နှေးစေသည်-
$("button").click(function(){
$("#div1").delay("slow").fadeIn();
$("#div2").delay("fast").fadeIn();
});
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
နှောင့်နှေး() နည်းလမ်းသည် တန်းစီနေသည့်အရာ၏ လုပ်ဆောင်မှုကို နှောင့်နှေးစေရန် အချိန်တိုင်းကိရိယာကို သတ်မှတ်ပေးသည်။
အထားအသို
$(selector).delay(speed,queueName)
Parameter | Description |
---|---|
speed | Optional. Specifies the speed of the delay Possible values:
|
queueName | Optional. Specifies the name of the queue Default is "fx", the standard effects queue |
ကိုယ်တိုင်စမ်းကြည့်ပါ - ဥပမာ
ကာတွန်းတစ်ခုကို မည်သို့နှောင့်နှေးမည်နည်း။