var time = 2019/08/29 12:00:00
time = time.replace(/\//g, '-');
console.log(time) // 输出值为 2019-08-29 12:00:00