06 2023 档案

vue事件总线
摘要://事件总线: 类似于单独对于一个功能的处理。组件间通信的方式;适用于任意组件间通信 // export default{ // //监控事件 // $on(eventName,handler){ // if(!listeners[eventName]){ // listeners[eventNam 阅读全文

posted @ 2023-06-14 09:04 爱前端的小魏 阅读(84) 评论(0) 推荐(0) 编辑

vue实现子父组件之间通信
摘要:<template> <div> <button @click="handleClick" :disabled="isLoading"> {{ isLoading ? "loading" : "submit" }} </button> <div class="err">{{ error }}</di 阅读全文

posted @ 2023-06-14 08:57 爱前端的小魏 阅读(14) 评论(0) 推荐(0) 编辑

vuex基础语法
摘要:// import Vuex from "vuex"; // import Vue from "vue"; // Vue.use(Vuex); // /* // vuex作用:数据共享 // 用法:在store新建一个js文件;new Vuex.Store // 方法: // state:初始状态数 阅读全文

posted @ 2023-06-14 08:56 爱前端的小魏 阅读(27) 评论(0) 推荐(0) 编辑

listeners和v-model
摘要:<template> <div id="app"> <LoadingButton @click="handlesClick"></LoadingButton> <ceShi2></ceShi2> </div> </template> <script> import LoadingButton fro 阅读全文

posted @ 2023-06-12 09:45 爱前端的小魏 阅读(14) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示