会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
雪落无痕1
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
22
下一页
2023年8月26日
vue--day70---搭建vuex 环境
摘要: 1. npm i vuex@3 2. Vue.use(Vuex) 3. store 4. vc==>store 5. vue2 中 只能使用 vuex 的 3 版本 vue3 中 只能使用 vuex 的 4 版本 6. store/index.js //改文件用于创建vuex 最为核心的 store
阅读全文
posted @ 2023-08-26 22:05 雪落无痕1
阅读(13)
评论(0)
推荐(0)
2023年8月23日
vue--day69---vuex
摘要: 1. vuex 是什么 概念:专门在 Vue 中实现集中式状态(数据)管理的一个 Vue 插件,对 vue 应 用中多个组件的共享状态进行集中式的管理(读/写),也是一种组件间通信的方 式,且适用于任意组件间通信。 2. 什么时候使用 Vuex 1. 多个组件依赖于同一状态 2. 来自不同组件的行为
阅读全文
posted @ 2023-08-23 23:47 雪落无痕1
阅读(21)
评论(0)
推荐(0)
vue--day68--插槽的总结
摘要: ## 插槽 1. 作用:让父组件可以向子组件指定位置插入html结构,也是一种组件间通信的方式,适用于 <strong style="color:red">父组件 > 子组件</strong> 。 2. 分类:默认插槽、具名插槽、作用域插槽 3. 使用方式: 1. 默认插槽: ```vue 父组件中
阅读全文
posted @ 2023-08-23 22:46 雪落无痕1
阅读(16)
评论(0)
推荐(0)
vue--day67--作用域插槽
摘要: 1. App.vue <template> <div class="container"> <Category title="游戏" > <template scope="atgui"> <ul > <li v-for="(g,index) in atgui.games" :key="index">
阅读全文
posted @ 2023-08-23 22:26 雪落无痕1
阅读(14)
评论(0)
推荐(0)
vue--day66--具名插槽
摘要: 1.App.vue <template> <div class="container"> <Category title="美食" > <img slot="center" src="https://s3.ax1x.com/2021/01/16/srJlq0.jpg" alt=""> <a slot
阅读全文
posted @ 2023-08-23 00:07 雪落无痕1
阅读(11)
评论(0)
推荐(0)
2023年8月21日
vue--day65--默认卡槽
摘要: 1. App.vue <template> <div class="container"> <Category title="美食" > <img src="https://s3.ax1x.com/2021/01/16/srJlq0.jpg" alt=""> </Category> <Categor
阅读全文
posted @ 2023-08-21 00:27 雪落无痕1
阅读(13)
评论(0)
推荐(0)
2023年8月14日
vue--day64--Vue-resource
摘要: 安装 npm install vue-resource //main.js 使用 import VueResource from "vue-resource" Vue.use(VueResource)安装好 Vue-resource 之后,在 Vue 组件中,我们就可以通过 this.$http 或
阅读全文
posted @ 2023-08-14 23:47 雪落无痕1
阅读(11)
评论(0)
推荐(0)
vue--day63--github搜索案例
摘要: 1.main.js import Vue from 'vue' import App from './App.vue' Vue.config.productionTip = false new Vue({ render: h => h(App), beforeCreate(){ Vue.protot
阅读全文
posted @ 2023-08-14 23:06 雪落无痕1
阅读(15)
评论(0)
推荐(0)
2023年8月13日
vue--day62--配置代理--总结
摘要: 前端发送 ajax 请求的方式 1. xhr new XMLHttpRequest xhr.open() xhr.send() 基本不用 2. jquery(封装的 xhr) $get $post 3. axios(封装的 xhr) 和 jquery 比较 promise 风格的,支持请求拦截器和响
阅读全文
posted @ 2023-08-13 15:37 雪落无痕1
阅读(18)
评论(0)
推荐(0)
2023年8月9日
vue--day61---todolist的MyItem.vue 或者Mylist.vue 实现动画
摘要: 1. MyItem.vue <template> <transition name="todo" appear> <li> <label> <input type="checkbox" :checked="todo.done" @click="handlerCheck(todo.id)"/> <sp
阅读全文
posted @ 2023-08-09 00:14 雪落无痕1
阅读(29)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
22
下一页