how add number to an array in javascript?
This question already has an answer here:
在添加到字符串之前,您需要将字符串解析为一个整数:
var dt = "12/02/2012";
var mm = de.split("/");
var year = parseInt(mm[2])+1;
链接地址: http://www.djcxy.com/p/17946.html
上一篇: 如何添加到JavaScript中的数组?