el-date-picker获取当前值
时间: 2023-08-22 21:05:49 浏览: 143
要获取el-date-picker的当前值,可以通过v-model绑定的属性来获取。在给v-model绑定的属性中,可以设置一个data属性,比如"startTime",然后在vue的js部分,使用该属性来获取当前值。在示例代码中,通过this.startTime即可获取el-date-picker的当前值。<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/LitongZero/article/details/88355974)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [el-date-picker日期选择器获取当前的时间](https://blog.csdn.net/XU441520/article/details/107345172)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文