js如何获得系统时间年月日时分秒function showTime() { var now = new Date() var nowTime = now.toLocaleString() var date = nowTime.substring(0,10)2023-04-21JavaScript250