Vue3报错:Failed to fetch dynamically imported module
2024-02-20Vue3报错:Failed to fetch dynamically imported module解决_failed to fetch dynamically imported module
jQuery发送ajax请求出现跨域问题(请求头XXX不被允许)
2024-02-19解决报错:Access to XMLHttpRequest at 'http://127.0.0.1:8000/jQuery-server?a=100&b=200' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: Request header field d is not allowed by Access-Control-Allow-Headers in preflight response._jquery ajax post header 跨域
在 vue eslint 报错 error “Component name “*****“ should always be multi-word”,该怎么办?
2024-02-19出现的问题:在 vue-cli 创建的项目中,创建文件并命名后,会报“Component name "*****" should always be multi-word”报错;报错截图如下:Component name "******" should always be multi-word.eslintvue/multi-word-component-names报错的原因:在组件命名的时候不够规范,根据 ESLint 官方风格指南,除了根组件(A.........._should always be multi-word
vue版本问题导致:Syntax Error: TypeError: Cannot read properties of undefined (reading ‘parseComponent‘)
2024-02-19vue小白上路翻车记_syntax error: typeerror: cannot read properties of undefined (reading 'parse
Vue | Vue.js 高级语法系列
2024-02-19h("h2", null, `当前计数:${counter.value}`),h("h2", null, `当前计数:${this.counter}`),-- 哈哈哈 -->console.log("插件被安装:",app,options)console.log("插件被安装:",app,options)console.log("传入的函数直接被执行:",app)// h传递3个参数 (标签名) ({ 对应的属性 }) (内容)_import { h } from 'vue
echarts dataZoom.slider is used but not imported.
2024-02-17使用dataZoom时图表报错:resize should not be called during main process.解决方法:在使用的页面种单独引入一下dataZoom:_component datazoom.slider is used but not imported.
Vue I18n 国际化插件,从安装到使用最全篇
2024-02-17国际化是指项目能够根据不同国家的语言进行转换,便于不同国家的用户使用。Vue I18 是 Vue.js 的国际化插件,它可以轻松地将一些本地化功能集成到应用程序中。为什么插件名称是 i18n 呢?它的全程是 internationalization,插件名取了首字母 i 和尾字母 n,中间一共有 18 个字母,所以组合起来就叫 i18n。哈哈哈哈,起名起的离谱。// 定义英文语言包对象},tabs: {// 定义中文语言包对象hotspot: '热点',experience: '经验',_vue-i18n
解决Failed to resolve import “@element-plus/icons-vue“ from “src\views\Home.vue“. Does the file exist?
2024-02-17成功地解决了Failed to resolve import "@element-plus/icons-vue" from "src\views\Home.vue". Does the file exist?_failed to resolve import "@element-plus/icons-vue
CSS position开启了绝对定位但是下拉弹窗还是被遮挡 o
2024-02-17里面li里设置一个鼠标移动上去显示的div,因为设置了overflow hidden导致不能完整显示。最外层父元素设置溢出隐藏之后,里面的下拉弹窗会被裁剪,即使用了float,加绝对定位。把其注释之后可以完整显示。_自定义的下拉怎么放在父元素之外
移动端布局之postcss-px-to-viewport(兼容vant)
2024-02-16在今天这篇文章中,我并不会在这里讲一些移动端视口的概念,包括物理像素和逻辑像素,理想视口,dpr等等等等,我只介绍这样一种非常不错的移动端适配方案:post-css-to-viewport,如果我说这种方案能解决98%以上的移动端布局痛点,我想整个掘金,应该没有人会反驳。_vant postcss-px-to-viewport