var db = new Date().toLocaleTimeString(); new Date().toLocaleDateString() toLocaleTimeString()作用把new Date()时间转化成字符串