英[spl?t] 美[spl?t]
vt.Split; <slang>(???) Leave; share
n.divide;disagreement;crack;split
vi. ??? ; Crash;
adj. ??, ???, ???, ????
3?? ??: ?? ??: ?? ?? ??: ?? ?? ??: ??
?????? ??() ??? ???
??: ???? ??? ??? ?????.
??: ??stringObject.split(separator,howmany)
????: separator ?????. ? ????? ??? ???? stringObject? ???? ??? ?? ??????. ?? ?????. ? ????? ??? ??? ?? ??? ?????. ? ????? ???? ? ????? ??? ???? ? ?? ?? ???? ???? ????. ? ????? ???? ??? ?? ???? ??? ???? ?????.?
??: ??? ??. ??? stringObject ???? ?? ??? ??? ???? ?? ???? ???? ?????. ??? ??? ????? ?? ?? ??? ???? ????. ??? ?? ??? ?? ???? ???? ???? ?? ??? ???? ?? ?? ???? ???? ???? ?????(??? ?? ???? ???? ???? ???? ??).
??: ? ???("")? ?? ??? ???? stringObject? ? ??? ?????. String.split()? Array.join? ???? ??? ?????.
?????? ??() ??? ?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <script type="text/javascript"> var str="How are you doing today?" document.write(str.split(" ") + "<br />") document.write(str.split("") + "<br />") document.write(str.split(" ",3)) </script> </body> </html>
???? ?? ?
??? ????? ??? "???? ??" ??? ?????