【js 数字和字符串】方法总结

join和split

1 var x;
2 var a=[];
3 a[0]="html";
4 a[1]='css';
5 a[2]='php';
6 alert(typeof a.join('.'));//html.css.php
View Code
原文地址:https://www.cnblogs.com/merlini/p/3116621.html