HTML DOM အချိန် အရာဝတ္ထု
အချိန်အရာဝတ္ထု
Time object သည် HTML <time> element ကို ကိုယ်စားပြုသည်။
Time Object ကို အသုံးပြုပါ။
getElementById() ကို အသုံးပြု၍ <time> ဒြပ်စင်တစ်ခုကို သင်ဝင်ရောက်နိုင်သည် ။
ဥပမာ
var x = document.getElementById("myTime");
Time Object တစ်ခုကို ဖန်တီးပါ။
document.createElement() နည်းလမ်းကို အသုံးပြု၍ <time> ဒြပ်စင်တစ်ခုကို ဖန်တီးနိုင်သည်-
ဥပမာ
var x = document.createElement("TIME");
Time Object Properties
Property | Description |
---|---|
dateTime | Sets or returns the value of the datetime attribute in a <time> element |
စံသတ်မှတ်ချက်များနှင့် အစီအစဉ်များ
Time object သည် စံ ဂုဏ်သတ္တိများ နှင့် အဖြစ်အပျက်များ ကို ပံ့ပိုး ပေးပါသည်။
ဆက်စပ်စာမျက်နှာများ
HTML ရည်ညွှန်း- HTML <time> တဂ်