js替换字符串中的某个字符
let startDate='2023/10/30'
let str=startDate.replace(/\//g,"-")
console.log('startDate',startDate)
console.log('str',str)
let startDate='2023/10/30'
let str=startDate.replace(/\//g,"-")
console.log('startDate',startDate)
console.log('str',str)