04 2024 档案

摘要:同事教了我一下这块的基础 我传参数的时候,是使用封装好的post传,实际上对应不同的格式,有不同的封装方法 我使用的post方法,传递的是raw格式(body) 而实际上后端需要的是form-data格式(body),对应封装函数为upload params格式则是通过在链接后?id=&name= 阅读全文
posted @ 2024-04-23 11:57 ayubene 阅读(215) 评论(0) 推荐(0) 编辑
摘要:尚硅谷视频教程 Teleport:让部分元素脱离原来的位置,到to指定的位置去 此处指定了弹窗到body标签内 <template> <h4>Model</h4> <button @click="isShow = true">打开弹窗</button> <Teleport to='body'> <d 阅读全文
posted @ 2024-04-16 21:57 ayubene 阅读(4) 评论(0) 推荐(0) 编辑
摘要:vue2项目启动后,local可以访问,但是network不能访问 防火墙等等都检查了 查到原因如下:本来写的是这样,实际上端口号需要保持一致 devServer: { disableHostCheck: true, open: true, host: '0.0.0.0', port: 8002, 阅读全文
posted @ 2024-04-15 15:15 ayubene 阅读(314) 评论(0) 推荐(0) 编辑
摘要:看了一下午 最后使用这篇博客的方法解决了 阅读全文
posted @ 2024-04-12 17:14 ayubene 阅读(15) 评论(0) 推荐(0) 编辑
摘要:同事教的方法1(当时是界面操作 记得不太清楚) 切换分支 最开始写代码的时候直接写在preview的分支,同事教我怎么将代码放到自己的分支上(另也查了一下其他方法) 新建分支,commit提交代码 其他两种方法参考这篇博客 暂存代码 试了一下,要先将修改点stage,然后命令行git stash p 阅读全文
posted @ 2024-04-12 10:23 ayubene 阅读(36) 评论(0) 推荐(0) 编辑
摘要:尚硅谷视频教程 shallowRef shallowReactive 浅层次的响应式数据(仅第一层) shallowRef :只能整体修改 person.value可以修改,但是person.value.name无法修改 shallowReactive :只能修改对象的第一层数据 car.brand 阅读全文
posted @ 2024-04-10 23:42 ayubene 阅读(5) 评论(0) 推荐(0) 编辑
摘要:尚硅谷视频教程 通信方式1 props parent传child--只能传递非函数 // Parent.vue <template> <div class="parent"> <h3>parent</h3> <h3>car: {{ car }}</h3> <Child :car="car"/> </ 阅读全文
posted @ 2024-04-10 21:56 ayubene 阅读(14) 评论(0) 推荐(0) 编辑
摘要:vscode ctrl+P 粘贴 阅读全文
posted @ 2024-04-10 14:14 ayubene 阅读(6) 评论(0) 推荐(0) 编辑
摘要:菜鸟教程链接 简单的卡片 <template> <div class="card"> <h4 class="card-title">标题</h4> <img src="../assets/th.jfif" alt="537" class="card-img-top" style="width: 50 阅读全文
posted @ 2024-04-09 10:05 ayubene 阅读(42) 评论(0) 推荐(0) 编辑
摘要:菜鸟教程链接 列表组+active激活+disabled禁用 要创建列表组,可以在 元素上添加 .list-group 类, 在 元素上添加 .list-group-item 类: <template> <div class="container mt-3"> <h2>列表组</h2> <p>列表组 阅读全文
posted @ 2024-04-02 13:35 ayubene 阅读(45) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示