将时间格式化为字符串

实例

new Date(item.date).toLocaleString("zh-cn", {
  year: "numeric",
  month: "2-digit",
  day: "2-digit",
}//2024/5/21
   ```