JavaScript String.fromCharCode()
ဥပမာများ
ယူနီကုဒ်တန်ဖိုးများကို အက္ခရာအဖြစ် မည်သို့ပြောင်းရမည်နည်း။
let char = String.fromCharCode(65);
let text = String.fromCharCode(72, 69, 76, 76, 79);
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
String.fromCharCode()
နည်းလမ်းသည် ယူနီကုဒ်တန်ဖိုးများကို အက္ခရာအဖြစ် ပြောင်းလဲပေးသည် ။
String String.fromCharCode()
object ၏ static method တစ်ခုဖြစ်သည်။
syntax သည် အမြဲတမ်း String.fromCharCode()
ဖြစ်သည်။
သင်အသုံးမပြုနိုင် myString.fromCharCode()
ပါ။
အထားအသို
String.fromCharCode(n1, n2, ..., nX)
ကန့်သတ်ချက်များ
Parameters | Description |
n1, n2, nX | Required. One or more Unicode values to be converted. |
တန်ဖိုးကို ပြန်ပေးသည်။
ရိုက်ပါ။ | ဖော်ပြချက် |
ကြိုးတစ်ချောင်း | ယူနီကုဒ် အက္ခရာ(များ) ကို ကိုယ်စားပြုသည့် စာကြောင်း။ |
ထိပ်ဖျား
ယူနီကုဒ်တန်ဖိုးများအားလုံး၏ စာရင်းတစ်ခုအတွက်၊ ကျွန်ုပ်တို့၏ ပြီးပြည့်စုံသော ယူနီကုဒ်ကိုးကား ချက်ကို လေ့လာပါ ။
Browser ပံ့ပိုးမှု
String.fromCharCode()
ECMAScript1 (ES1) အင်္ဂါရပ်တစ်ခုဖြစ်သည်။
ES1 (JavaScript 1997) ကို ဘရောက်ဆာအားလုံးတွင် အပြည့်အဝ ပံ့ပိုးထားသည်။
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | Yes | Yes | Yes | Yes | Yes |