let stringTime="2023-01-07 15:04:00"
uni-app 使用 let timenew Date(stringTime).getTime() //转换时间戳
微信小程序开发工具上和安卓显示正常 ios上 console.log(time) // NaN
原来在ios上使用'2023-01-07 15:04:00',包含了-,而ios里只能识别/这样格式的,使用stringTime.replace(/-/g, "/")替换成'2023-01-07 15:04:00'这样就没问题了。