JavaScript ကမ္ဘာလုံးဆိုင်ရာ အကိုးအကား
JavaScript ကမ္ဘာလုံးဆိုင်ရာ ဂုဏ်သတ္တိများနှင့် နည်းလမ်းများကို JavaScript အရာဝတ္ထုအားလုံးတွင် အသုံးပြုနိုင်သည်။
JavaScript ကမ္ဘာလုံးဆိုင်ရာနည်းလမ်းများ
Function | Description |
---|---|
decodeURI() | Decodes a URI |
decodeURI Component() |
Decodes a URI component |
encodeURI() | Encodes a URI |
encodeURI Component() |
Encodes a URI component |
escape() | Deprecated. Use instead: encodeURI() encodeURIComponent() |
eval() | Evaluates a string and executes it as if it was script code |
isFinite() | Determines whether a value is a finite, legal number |
isNaN() | Determines whether a value is an illegal number |
Number() | Converts an object's value to a number |
parseFloat() | Parses a string and returns a floating point number |
parseInt() | Parses a string and returns an integer |
String() | Converts an object's value to a string |
unescape() | Deprecated. Use instead: decodeURI() decodeURIComponent() |
JavaScript Global Properties
Property | Description |
---|---|
Infinity | A numeric value that represents positive/negative infinity |
NaN | "Not-a-Number" value |
undefined | Indicates that a variable has not been assigned a value |
မှတ်ချက်
ဤနည်းလမ်းများသည် ကမ္ဘာလုံးဆိုင်ရာဖြစ်ပြီး ကမ္ဘာလုံးဆိုင်ရာအရာဝတ္ထုမှာ ဘရောက်ဆာဝင်းဒိုးဖြစ်သောကြောင့်၊ ဤနည်းလမ်းများသည် အမှန်တကယ်အားဖြင့် ဝင်းဒိုးနည်းလမ်းများဖြစ်သည်-
isNaN() သည် window.isNaN() နှင့် အတူတူပင် ဖြစ်သည်။