WMLScript elements() သုံးစွဲ
elements() သုံးစွဲ အသုံးပြု ပြီး စကားလုံး ကို စကားလုံး တွင် ပေါ်ပေါက်သော အပေါင်း ကို ကူညီပေးသည်。
အပြောအဆ
n = String.elements(string, separator)
component | အကျဉ်း |
---|---|
n | separator တွင် ခွဲခြားထားသော စကားလုံး ကို string တွင် ပေါ်ပေါက်သော အပေါင်း |
string | ရှာဖွေသော စကားလုံး |
separator | စကားလုံး အရေးပါသော စကားလုံး အကြောင်း |
အကျိုးချင်း
var a = String.elements("Visit CodeW3C.com!","i"); var b = String.elements("Visit CodeW3C.com!","V"); var c = String.elements("Visit CodeW3C.com!"," ");
အကျိုးသက်
a = 2 b = 1 c = 1