JavaScript Multiline Property
ဥပမာ
let text = "Visit W3Schools!";
let pattern = /W3S/gi; // "g" and "i" is set, "m" is not.
let result = pattern.multiline;
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
m ပြုပြင်မွမ်းမံမှု သတ်မှတ်ခြင်း ရှိ၊
"m" ပြုပြင်မွမ်းမံမှုအား သတ်မှတ်ပါက ဤပိုင်ဆိုင်မှုသည် အမှန်အတိုင်း ပြန်ဖြစ်မည်ဖြစ်ပြီး၊ သို့မဟုတ်ပါက ၎င်းသည် false ပြန်ပေးသည်။
Browser ပံ့ပိုးမှု
multiline
ECMAScript1 (ES1) အင်္ဂါရပ်တစ်ခုဖြစ်သည်။
ES1 (JavaScript 1997) ကို ဘရောက်ဆာအားလုံးတွင် အပြည့်အဝ ပံ့ပိုးထားသည်။
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | Yes | Yes | Yes | Yes | Yes |
အထားအသို
RegExpObject.multiline
တန်ဖိုးကို ပြန်ပေးသည်။
Type | Description |
---|---|
Boolean | Returns true if the "m" modifier is set, false otherwise |