js split-CarlZeng

var dateStr = “2002/07/03”;dateArray = dateStr.split(“/“);Now:dateArray[0]=”2002”dateArray[1]=”07”dateArray[2]=”03”

var dateStr = “2002/07/03”;
dateArray = dateStr.split(“/“);

Now:
dateArray[0]=”2002”
dateArray[1]=”07”
dateArray[2]=”03”

个性化需求沟通 扫客服加V加群: