摘要:
1varstringValue="Loremipsumdolorsitamet,consecteturadipisicingelit";2varpositions=newArray();3varpos=stringValue.indexOf("e");45while(pos>-1){6positions.push(pos);7pos=stringValue.indexOf("e",pos+1);8}9console.log(positions); 阅读全文
摘要:
1vars1="sometext";2s1.color="red";3console.log(s1.color);45vars1=newObject();6s1.text="sometext";7s1.color="red";8console.log(s1);9console.log(s1.color);1011varstringObject=newString();12stringObject.text="sometext";13stringObject.color="red&quo 阅读全文