jQuery Effect show() နည်းလမ်း
ဥပမာ
လျှို့ဝှက် <p> အစိတ်အပိုင်းအားလုံးကို ပြပါ-
$("button").click(function(){
$("p").show();
});
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
show() method သည် ဝှက်ထားသော၊ ရွေးချယ်ထားသော အစိတ်အပိုင်းများကို ပြသသည်။
မှတ်ချက်- show() သည် jQuery နည်းလမ်းများဖြင့် ဝှက်ထားသော ဒြပ်စင်များပေါ်တွင် အလုပ်လုပ်ပြီး display-CSS တွင် မရှိပါ။ (သို့သော် မြင်နိုင်မှု-hidden မဟုတ်ပါ။)
အကြံပြုချက်- ဒြပ်စင်များကို ဝှက်ရန်၊ hide() နည်းလမ်းကို ကြည့်ပါ။
အထားအသို
$(selector).show(speed,easing,callback)
Parameter | Description |
---|---|
speed | Optional. Specifies the speed of the show effect. Default value is 400 milliseconds Possible values:
|
easing | Optional. Specifies the speed of the element in different points of the animation. Default value is "swing" Possible values:
|
callback | Optional. A function to be executed after the show() method is completed
To learn more about callback, visit our jQuery Callback chapter |
သင်ကိုယ်တိုင်စမ်းကြည့်ပါ - ဥပမာများ
ဒြပ်စင်တစ်ခုအား ဖုံးကွယ်/ပြသသည့်အခါ အမြန်နှုန်း ကန့်သတ်ဘောင်ကို အသုံးပြုနည်း။
ကိုအသုံးပြု၍ element တစ်ခုကို ဝှက်ထား/ပြသသည့်အခါ callback parameter ကိုအသုံးပြုနည်း။