HTML DOM Meter Object
မီတာအရာဝတ္ထု
Meter object သည် HTML <meter> element ကို ကိုယ်စားပြုသည်။
မှတ်ချက်- <meter> ဒြပ်စင်အား Internet Explorer / Edge သို့မဟုတ် Safari 5 (နှင့် အစောပိုင်းဗားရှင်းများ) တွင် မပံ့ပိုးပါ။
မီတာအရာဝတ္တုကို အသုံးပြုပါ။
getElementById() ကို အသုံးပြု၍ <meter> ဒြပ်စင်တစ်ခုကို သင်ဝင်ရောက်နိုင်သည် ။
ဥပမာ
var x = document.getElementById("myMeter");
Meter Object တစ်ခုကို ဖန်တီးပါ။
document.createElement() နည်းလမ်းကို အသုံးပြု၍ <meter> element တစ်ခုကို ဖန်တီးနိုင်သည်-
ဥပမာ
var x = document.createElement("METER");
Meter Object Properties
Property | Description |
---|---|
high | Sets or returns the value of the high attribute in a gauge |
labels | Returns a list of <label> elements that are labels for the gauge |
low | Sets or returns the value of the low attribute in a gauge |
max | Sets or returns the value of the max attribute in a gauge |
min | Sets or returns the value of the min attribute in a gauge |
optimum | Sets or returns the value of the optimum attribute in a gauge |
value | Sets or returns the value of the value attribute in a gauge |
စံသတ်မှတ်ချက်များနှင့် အစီအစဉ်များ
Meter object သည် စံ ဂုဏ်သတ္တိများ နှင့် ဖြစ်ရပ်များ ကို ပံ့ပိုး ပေးပါသည်။
ဆက်စပ်စာမျက်နှာများ
HTML ရည်ညွှန်း- HTML <meter> တဂ်