el-date-picker返回时间戳
时间: 2023-08-19 15:04:37 浏览: 161
el-date-picker组件可以返回时间戳的方法是在组件上添加value-format属性并设置为"timestamp"。例如,在第二个引用中,可以看到el-date-picker组件的value-format属性被设置为"timestamp",这意味着当选择日期时间后,它会返回一个时间戳。所以,如果你想要el-date-picker返回时间戳,可以在对应的组件上设置value-format属性为"timestamp"。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [el-date-picker 返回时间转换](https://blog.csdn.net/L_xiaosong/article/details/129245558)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [element(时间插件返回时间戳给后台)](https://blog.csdn.net/qq_39237755/article/details/82622905)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文