【Vue】
Vue 实用总结
___chu
这个作者很懒,什么都没留下…
展开
-
vue中的$
vue中的$原创 2022-10-19 17:45:31 · 149 阅读 · 0 评论 -
vuerouter三种模式及总结
vuerouter三种模式及总结原创 2022-10-19 12:02:50 · 287 阅读 · 0 评论 -
Vue.prototype设置全局变量或全局方法
Vue.prototype设置全局变量或全局方法原创 2022-08-12 11:34:27 · 1828 阅读 · 1 评论 -
父元素设置了 flex 布局,子元素靠右
父元素设置了 flex 布局,子元素靠右原创 2022-06-17 11:15:05 · 553 阅读 · 0 评论 -
Vue代码调试
Vue调试原创 2022-07-11 09:47:52 · 408 阅读 · 0 评论 -
vue列表渲染没有生效
vue列表渲染没有生效原创 2022-06-27 17:48:40 · 470 阅读 · 0 评论 -
Web视频
Web视频原创 2022-07-04 11:38:42 · 138 阅读 · 0 评论 -
html2canvas截图不全
html2canvas截图不全原创 2022-06-15 16:48:57 · 708 阅读 · 0 评论 -
为什么一般是给post请求设置content-type,get请求不需要设置吗?
为什么一般是给post请求设置content-type,get请求不需要设置吗?原创 2022-07-08 15:07:11 · 770 阅读 · 0 评论 -
Content-Type几种值的区别及用法
①、 application/json:消息主体是序列化后的 JSON 字符串作用: 告诉服务器请求的主题内容是json格式的字符串,服务器端会对json字符串进行解析 好处: 前端不需要关心数据结构的复杂度,只要是标准的json格式就能提交成功。②、 application/x-www-form-urlencoded:数据被编码为名称/值对。这是标准的编码格式 作用:默认方式在请求发送过程中会对数据进行序列化处理,以键值对形式?key1=va...原创 2022-05-23 18:03:05 · 920 阅读 · 0 评论 -
关于sessionStorage的移动端兼容问题
关于sessionStorage的移动端兼容问题原创 2022-07-07 18:15:27 · 743 阅读 · 0 评论 -
axios(Ajax)请求配置项config详解
只有 url 是必需的。如果没有指定 method,请求将默认使用 get 方法。{ // `url` 是用于请求的服务器 URL url: "/user", // `method` 是创建请求时使用的方法 method: "get", // 默认是 get // `baseURL` 将自动加在 `url` 前面,除非 `url` 是一个绝对 URL。 // 它可以通过设置一个 `baseURL` 便于为 axios 实例的方法传递相对 URL baseURL: "ht原创 2022-05-23 17:44:58 · 2153 阅读 · 0 评论 -
el: ‘#app‘
<div id="app"> <ul> <li v-for="value in object"> {{ value }} </li> </ul></div> <script>new Vue({ el: '#app', data: { object: { name: '从入门到大师', url: 'http://www.runoob.com',.原创 2022-05-23 12:15:18 · 2350 阅读 · 1 评论 -
VScode自动生成项目结构树
1、安装插件project-tree2、使用Shift + Cmd + p或者F1 输入:Project Tree3、 结果自动生成在README.md文件中exampleObject├─ .gitignore├─ babel.config.js├─ package-lock.json├─ package.json├─ public│ ├─ CSS│ │ └─ reset.css│ ├─ favicon.ico│ └─ index.html...原创 2022-05-18 17:25:32 · 2409 阅读 · 0 评论 -
Reactive的值没有响应式
let linkJumpTypeParamValue = reactive({ beginDay: beginDay.value, endDay: endDay.value,});reactive嵌套了ref的值,实测没有响应式只有初始化的值解决办法:去掉.valuelet linkJumpTypeParamValue = reactive({ beginDay: beginDay, endDay: endDay,});...原创 2022-03-30 11:43:08 · 754 阅读 · 0 评论 -
动态控制van-button某个属性是否有效
<van-button v-for="value in 6" :key="value" size="mini" style="width: 40%; margin: 10px" @click="sendCode" :color="check ? color : emptyColor" :plain="check" type="default..原创 2022-03-24 12:18:37 · 389 阅读 · 1 评论 -
Maximum call stack size exceeded
<van-search v-model="searchInfo" placeholder="请输入国家" input-align="center" @update:model-value="onsearch" clearable="true" @clear="clearInput" />使用vant发现clearable和clear一起使用会报这个错,网上查看资料重复注册也会报这个错去掉其中一个就恢复了...原创 2022-03-14 17:40:13 · 614 阅读 · 0 评论 -
Vue热更新失效
编码突然页面抽风不会热更新了,配置路由的时候地址没配好import CommentManage from '@/views/comment/manage/commentManage.vue';配置成了,大小写错了,特立此项,引以为戒import CommentManage from '@/views/comment/manage/CommentManage.vue';...原创 2022-03-04 15:04:16 · 1068 阅读 · 0 评论 -
Vue动态修改Style背景色
<div class="reverse-imgdiv" v-bind:style="{ background: activeColor }"在setup里面修改activeColor即可原创 2022-02-17 17:27:51 · 1995 阅读 · 0 评论 -
van-pull-refresh嵌套van-list滑动冲突问题
style如下即可解决,关键是refresh滚动,list不用滚动&-refresh { width: 100%; height: 100%; overflow: scroll; &-list { width: 100%; height: 100%; &-timeleft { padding-left: 40px; } } }原创 2021-12-28 14:23:24 · 1385 阅读 · 0 评论