现在我们需要来截取 2018.05.05 19:07 中的某一项
截取时间
var temp="2018.05.05 19:07"
temp.split(' ')[1]
var temp="2018.05.05 19:07";
temp.split(' ')[1].split(':')[0];
var temp="2018.05.05 19:07"
temp.split('')[0]
现在我们需要来截取2018-05-05 19:07中的某一项
截取年份
var temp="2018-05-05 19-07"
temp.split(' ')[0]
var temp="2018-05-05 19:07"
temp.split('-')[0]
temp.split('')[0].split('-')[0]
temp.split('')[1].split('-')[0]
temp.split('')
现在我们需要来截取2018-05-05 19-07中的某一项
截取时间
var temp="2018-05-05 19-07"
temp.split(' ')[1]
temp.split(' ')[0].split('-')[0]
temp.split(' ')[1].split('-')[0]
temp.split('-')[1]
temp.split('-')[3]
temp.split('-')[2]