/ / divide the following strings into the array according to the rules.
"Li Ming: 60; Xiaohua: 76; Xiaowen: 90; Xiaomei: 85; Zhang Hua: 68; Li Yang: 74; Tiantian: 90; Wang Qiang: 69; Xiaohe: 87; Liu Yang: 72"
var scoreinfos=":60; :76; :90; :85;:68;:74;:90;:69;:87;:72";
var myarr=scoreinfos.split(";");
for(var i=0;i<myarr.length;iPP)
{
document.write(myarr[i]+"<br/>");
/ / the display is as follows:
Li Ming: 60
Xiaohua: 76
essay: 90
Xiaomei: 85
Zhang Hua: 68
Li Yang: 74
Tiantian: 90
Wang Qiang: 69
Xiaohe: 87
Liu Yang: 72
/ / the array should be displayed as follows:
myarr=[:60,:76,:90,:85,:68,:74,:90,:69,:87,:72]()
/ / slice selected element
document.write(myarr[i].slice(3)+"<br/>");
/ / display the following
60
76
90
85
68
90
69
69
72
/ / but according to the definition of slice, the third place will be selected, and the latter will be selected, and should be displayed like this.
60
floret: 76
essay: 90
Xiaomei: 85
Zhang Hua: 68
Li Yang: 74
every day: 90 < br