HTML DOM Node isSupported() နည်းလမ်း
ဥပမာ
အင်္ဂါရပ် Core၊ ဗားရှင်း 2.0၊ <button> ဒြပ်စင်အတွက် ပံ့ပိုးထားခြင်း ရှိမရှိ စစ်ဆေးပါ-
var item = document.getElementsByTagName("BUTTON")[0];
item.isSupported("Core", "2.0");
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
isSupported() method သည် သတ်မှတ်ထားသော node အတွက် သတ်မှတ်ထားသော အင်္ဂါရပ်ကို ပံ့ပိုးထားခြင်း ရှိမရှိ စစ်ဆေးပါသည်။
မှတ်ချက်- ဤနည်းလမ်းသည် ဘရောက်ဆာများစွာတွင် အသုံးမပြုတော့ပါ။ မသုံးဖြစ်အောင်ကြိုးစားပါ။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် နည်းလမ်းကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Method | |||||
---|---|---|---|---|---|
isSupported() | Not supported | 9.0 | Not supported | Yes | Not supported |
မှတ်ချက်- ဤနည်းလမ်းကို ယခင်က Chrome၊ Firefox နှင့် Opera တို့တွင် ပံ့ပိုးပေးခဲ့သော်လည်း ၎င်းတို့သည် ၎င်းကို ပံ့ပိုးမပေးတော့ပါ။
အထားအသို
node.isSupported(feature, version)
ကန့်သတ်ချက်များ
Parameter | Type | Description |
---|---|---|
feature | String | Required. Defines the feature you want to check if is supported |
version | String | Optional. Defines the version of the feature you want to check if is supported |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | Boolean သည် အင်္ဂါရပ်ကို ပံ့ပိုးထားလျှင် မှန်သည်၊ မဟုတ်ပါက မှားသည်။ |
---|---|
DOM ဗားရှင်း | Core Level 2 Node Object |