代码如下:[removed] function strToDate(str, ext) { if (str == null || str == ”) return; var arys = new Array(); arys = str.split(‘-‘); var newDate = new Date(arys[0], arys[1] – 1, arys[2], 9, 0, 0); if (ext) { newDate = new Date(newDate.getTime() + 1000 *