微信扫一扫
在实际开发中我们有时需要把获取到的日期转换成年月日的字符串格式,使用 toLocaleDateString() 可以实现: 也可以直接传参数转换:
toLocaleDateString()
相关推荐