摘要:
1.let n = new Date() Date()不传参表示返回当前时间,传参必须传入其毫秒表示,基于参数创建日期对象。 Date.now()表示当前日期和时间的毫秒数。 2.toLocaleString(),toString(),valueOf();前两者返回时间的字符串表示,后者返回毫秒表示 阅读全文
摘要:
环境:vite + vue3 + element-plus 问题:打包时出现warning: "@charset" must be the first rule in the file这样的警告,发现是完整引入element-plus import 'element-plus/dist/index. 阅读全文