Eventuali duplicati:
How do I split this string with JavaScript?come dividere una stringa in JavaScript
Come dividere una stringa in JavaScript?
esempio str = "this is part 1 one wall this is part 2 "
ora voglio dividere lo str in 2 parti separate da parola wall
quindi voglio uscita sia:
st1 ="this is part 1 "
st2 ="this is part 2 "
dove ha 'One' andare? – SilentGhost