jQuery mouseup() နည်းလမ်း
ဥပမာ
စာသားအချို့ကိုထည့်သွင်းရန် <div> ဒြပ်စင်တစ်ခုပေါ်တွင် ဘယ်မောက်ခလုတ်ကို လွှတ်ပါ။
$("div").mouseup(function(){
$(this).after("Mouse button released.");
});
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ရွေးချယ်ထားသည့်အရာအပေါ် ဘယ်ဘက်မောက်စ်ခလုတ်ကို လွှတ်လိုက်သောအခါ မောက်စ်အပ်ဖြစ်ရပ် ဖြစ်ပေါ်သည်။
mouseup() method သည် mouseup event ကို အစပျိုးပေးသည်၊ သို့မဟုတ် mouseup event ဖြစ်ပေါ်လာသောအခါ run ရန် function တစ်ခုကို ပူးတွဲပေးသည်။
အကြံပြုချက်- ဤနည်းလမ်းကို mousedown() method နှင့် မကြာခဏ တွဲသုံး ပါသည်။
အထားအသို
ရွေးချယ်ထားသော အစိတ်အပိုင်းများအတွက် မောက်စ်တင်ခြင်း အစီအစဉ်ကို အစပျိုးပါ
$(selector).mouseup()
မောက်စ်တင်သည့်ဖြစ်ရပ်သို့ လုပ်ဆောင်ချက်တစ်ခုကို ပူးတွဲပါ-
$(selector).mouseup(function)
Parameter | Description |
---|---|
function | Optional. Specifies the function to run when the mouseup event is triggered |