2022年3月13日

关于 vue3 不使用根标签报错提示 [vue/no-multiple-template-root] The template root requires exactly one element

摘要: https://blog.csdn.net/weixin_43245095/article/details/112514687 阅读全文
posted @ 2022-03-13 16:59 文仲玉 阅读(312) 评论(0) 推荐(0) 编辑
2022年2月24日

去掉input属性为number时 右边的 +、-号

摘要: /* 谷歌 */ input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; } /* 火狐 */ input 阅读全文
posted @ 2022-02-24 01:38 文仲玉 阅读(165) 评论(0) 推荐(0) 编辑
2022年2月21日

Chrome插件下载

摘要: https://crxdl.com/ 阅读全文
posted @ 2022-02-21 14:33 文仲玉 阅读(8) 评论(0) 推荐(0) 编辑
2022年1月27日

JS中的 ?. ?? ??=

摘要: ####1.可选链(?.) /* 只有当a存在,同时a具有name属性的时候,才会把值赋给b, 否则就会将undefined赋值给b.重要的是,不管a存在与否,这么做都不会报错. */ let a; let b = a?.name;//undefined const arr = [{ name: " 阅读全文
posted @ 2022-01-27 16:07 文仲玉 阅读(517) 评论(0) 推荐(0) 编辑

provide和inject用法

摘要: -provide和inject是成对出现的,用于父组件向子孙组件传递数据 -provider/inject:简单的来说就是在父组件中通过provider来提供变量,然后在子组件中通过inject来注入变量 需要注意的是这里不论子组件有多深,只要调用了inject那么就可以注入provider中的数据 阅读全文
posted @ 2022-01-27 15:41 文仲玉 阅读(552) 评论(0) 推荐(0) 编辑

vue自定义组件上的v-model如何与子组件数据绑定

摘要: https://www.jianshu.com/p/695ca638783a 阅读全文
posted @ 2022-01-27 15:34 文仲玉 阅读(37) 评论(0) 推荐(0) 编辑

npm、yarn、cnpm、pnpm

摘要: https://blog.csdn.net/u012384510/article/details/121200358?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECT 阅读全文
posted @ 2022-01-27 11:07 文仲玉 阅读(23) 评论(0) 推荐(0) 编辑
2022年1月26日

路由重复跳转

摘要: import Vue from 'vue' import VueRouter from 'vue-router' import store from '@/store' Vue.use(VueRouter) //解决路由跳转原路由或者刷新出错 const originalReplace = VueR 阅读全文
posted @ 2022-01-26 17:07 文仲玉 阅读(65) 评论(0) 推荐(0) 编辑
2022年1月25日

JS Blob对象

摘要: https://www.cnblogs.com/lsqy/p/11447528.html 阅读全文
posted @ 2022-01-25 14:23 文仲玉 阅读(20) 评论(0) 推荐(0) 编辑

移动端页面适配

摘要: https://www.jianshu.com/p/2c33921d5a68 https://segmentfault.com/a/1190000008767416 https://www.cnblogs.com/xiaocaiyuxiaoniao/p/10417592.html 阅读全文
posted @ 2022-01-25 10:16 文仲玉 阅读(6) 评论(0) 推荐(0) 编辑