\njoin()<\/td>\n | string<\/td>\n | \u5c06\u6570\u7ec4\u5143\u7d20\u8fde\u63a5\u8d77\u6765\u4ee5\u6784\u5efa\u4e00\u4e2a\u5b57\u7b26\u4e32<\/td>\n | \u53ef\u4ee5\u968f\u610f\u8bbe\u5b9a\u5206\u9694\u7b26<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u4e0b\u9762\u6211\u4eec\u770b\u4e0b\u60c5\u51b5 1\u3001toString()<\/strong><\/p>\n\t<<\/span>script type=<\/span>\"text\/javascript\"<\/span>><\/span>\n\t\tvar<\/span> a=<\/span>[<\/span>1<\/span>,<\/span>2<\/span>,<\/span>3<\/span>,<\/span>4<\/span>,<\/span>5<\/span>,<\/span>6<\/span>,<\/span>7<\/span>,<\/span>8<\/span>,<\/span>9<\/span>,<\/span>0<\/span>]<\/span>;<\/span>\/\/\u539f\u6570\u7ec4<\/span>\n\t\tvar<\/span> b=<\/span>a.<\/span>toString<\/span>(<\/span>)<\/span>;<\/span>\n\t\tconsole.<\/span>log<\/span>(<\/span>a)<\/span>\n\t\tconsole.<\/span>log<\/span>(<\/span>b)<\/span>\n\t\tconsole.<\/span>log<\/span>(<\/span>typeof<\/span>(<\/span>a)<\/span>)<\/span>\n\t\tconsole.<\/span>log<\/span>(<\/span>typeof<\/span>(<\/span>b)<\/span>)<\/span>\n\t<<\/span>\/<\/span>script><\/span>\n<\/code><\/pre>\n 2\u3001toLocaleString()<\/strong><\/p>\n\t<<\/span>script type=<\/span>\"text\/javascript\"<\/span>><\/span>\n\t\tvar<\/span> a=<\/span>[<\/span>1<\/span>,<\/span>2<\/span>,<\/span>3<\/span>,<\/span>4<\/span>,<\/span>5<\/span>,<\/span>6<\/span>,<\/span>7<\/span>,<\/span>8<\/span>,<\/span>9<\/span>,<\/span>0<\/span>]<\/span>;<\/span>\/\/\u539f\u6570\u7ec4<\/span>\n\t\tvar<\/span> d=<\/span>a.<\/span>toLocaleString<\/span>(<\/span>)<\/span>;<\/span>\n\t\tconsole.<\/span>log<\/span>(<\/span>d)<\/span>;<\/span>\n\t\tconsole.<\/span>log<\/span>(<\/span>typeof<\/span>(<\/span>d)<\/span>)<\/span>;<\/span>\n\t<<\/span>\/<\/span>script><\/span>\n<\/code><\/pre>\n<\/p>\n 3\u3001join()<\/strong><\/p>\n\t<<\/span>script type=<\/span>\"text\/javascript\"<\/span>><\/span>\n\t\tvar<\/span> a=<\/span>[<\/span>1<\/span>,<\/span>2<\/span>,<\/span>3<\/span>,<\/span>4<\/span>,<\/span>5<\/span>,<\/span>6<\/span>,<\/span>7<\/span>,<\/span>8<\/span>,<\/span>9<\/span>,<\/span>0<\/span>]<\/span>;<\/span>\/\/\u539f\u6570\u7ec4<\/span>\n\t\tvar<\/span> c=<\/span>a.<\/span>join<\/span>(<\/span>':'<\/span>)<\/span>;<\/span>\n\t\tconsole.<\/span>log<\/span>(<\/span>c)<\/span>\n\t\tconsole.<\/span>log<\/span>(<\/span>typeof<\/span>(<\/span>c)<\/span>)<\/span>\n\t<<\/span>\/<\/span>script><\/span>\n<\/code><\/pre>\n<\/p>\n 4.split<\/strong> \u4f7f\u7528 split() \u65b9\u6cd5\u628a\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6570\u7ec4<\/p>\n\t<<\/span>script type=<\/span>\"text\/javascript\"<\/span>><\/span>\n\t\tvar<\/span> a=<\/span>[<\/span>1<\/span>,<\/span>2<\/span>,<\/span>3<\/span>,<\/span>4<\/span>,<\/span>5<\/span>,<\/span>6<\/span>,<\/span>7<\/span>,<\/span>8<\/span>,<\/span>9<\/span>,<\/span>0<\/span>]<\/span>;<\/span>\/\/\u539f\u6570\u7ec4<\/span>\n\t\tvar<\/span> b=<\/span>a.<\/span>toString<\/span>(<\/span>)<\/span>;<\/span>\n\t\tvar<\/span> c=<\/span>a.<\/span>join<\/span>(<\/span>':'<\/span>)<\/span>;<\/span>\n\t\tconsole.<\/span>log<\/span>(<\/span>b)<\/span>\n\t\tconsole.<\/span>log<\/span>(<\/span>c)<\/span>\n\t\t\n\t\tvar<\/span> bv=<\/span>b.<\/span>split<\/span>(<\/span>','<\/span>)<\/span>;<\/span>\n\t\tvar<\/span> cv=<\/span>c.<\/span>split<\/span>(<\/span>':'<\/span>
|