Get the current time

// 获取现在的时间戳
			nowTime(){
    
    
				let times=new Date()
				// console.log(times);
				let year=times.getFullYear() 
				let m=times.getMonth()+1
				let d=times.getDate()
				let csv=year+'-'+m+'-'+d
				return csv
			},

Guess you like

Origin blog.csdn.net/qq_45894929/article/details/111693098