this.$refs.message.open
时间: 2023-09-15 19:15:41 浏览: 89
this.$refs.message.open是一个方法调用,用于打开一个消息框。在给定的代码示例中,通过点击按钮触发openMessage方法,该方法内部调用了this.$message方法,传入了一个包含type和message属性的对象作为参数,以显示一个成功类型的消息框,消息内容为"哈哈哈"。因此,this.$refs.message.open的作用是打开一个类型为成功的消息框,并显示"哈哈哈"作为消息内容。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Vue.extend、message消息提示](https://blog.csdn.net/weixin_41897680/article/details/121208368)[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%"]
- *3* [Git-2.21.0-64-bit.zip](https://download.csdn.net/download/hiltan/11898498)[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 ]
阅读全文