![](https://img-blog.csdnimg.cn/20190927151053287.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Vue & uni-app
# Vue & Vue-Router & Veux & uni-app
就是爱吃肉ro
真正喜欢的人和事 都值得我们去坚持
展开
-
Vuetify2 的部分坑点总结.
文章目录1. v-app / v-main / v-content / v-container 区别2. v-row / v-col / v-layout / v-flex 区别1. v-app / v-main / v-content / v-container 区别https://www.reddit.com/r/vuetifyjs/comments/but9mp/difference_between_vapp_vcontent_and_vcontainer/总结一下,v-app 是原创 2020-11-28 09:59:00 · 1065 阅读 · 0 评论 -
Webstorm 配置 Eslint + Prettier 统一团队代码风格
文章目录ESLintPrettierESLint首先, 装上 Webstorm 插件这里选择自动即可, 只要 npm 安装了, 就会自动找路径Prettier先安装插件此时, prettier 的webstorm插件的格式化快捷键为 Ctrl+Alt+Shift+L文件监视 -> 保存时自动格式化这里没有调好… 先放上, 待改!...原创 2020-07-24 01:53:58 · 6767 阅读 · 0 评论 -
外部 js 文件 访问 vue 实例 的两种方法 / 解决报错 TypeError: Cannot read property ‘$http‘ of undefined“
文章目录BeforeSolution1Solution2Before报错:Error in v-on handler: “TypeError: Cannot read property ‘$http’ of undefined”Cannot read property ‘$http’ of undefinedSolution1其实, 当我们创建 Vue 实例的时候import vue from ‘vue’;这里就完全可以把vue看作为 js 文件.就是这个道理, 那么, 把某个库原创 2020-07-14 16:41:02 · 2240 阅读 · 0 评论 -
Vuetify Carouse轮播图 图片切换导致页面总是自动跳转到轮播图位置
vuetify carouse轮播图 的图片自动切换的时候, 会自动聚焦跳转到轮播图自身的位置.这导致了一个问题, 当屏幕同时显示着轮播图和其他内容时, 轮播图一自动切换, 页面就会自动跳转到轮播图的位置…Solution1Solution2我在找问题的时候, 也发现了一个有趣的问题如果有 v-container 标签包裹的 带淡入特效的轮播图, 那么他会自动跳转 如下问题重现:https://codepen.io/syousui/pen/pogZKPV?editors=1010那么这样解原创 2020-07-14 00:33:10 · 1405 阅读 · 0 评论 -
最清晰的配置! VSCode + Eslint + Prettier 语法检查+代码格式化!
文章目录前言1.> prettier - 格式化代码2.> eslint - js代码检查3.> eslint + prettier 4.> ***** vscode 集成配置 eslint+prettier 前言全文分为四部分, 分别为prettier的使用,eslint的使用,prettier + eslint 的使用,使用 vscode 的 prettier插件 来代替 prettier 格式化 , 然后再 eslint 只检测语法错误 ( 重点 ).1.原创 2020-07-09 15:02:42 · 6583 阅读 · 0 评论 -
关于 ES6 箭头函数 用法 以及 Vue 中 data / method 里不能用箭头函数的坑点记录
文章目录1>. arrow function1). how to use2). difference2>. vue's method don't use arrow method!1>. arrow function1). how to use无参数let hello_1 = function () { console.log('hello');}let hello_2 = () => 'hello'含参数let hello_1 = function (原创 2020-07-08 19:54:25 · 769 阅读 · 0 评论 -
vue axios跨域访问相关问题 | axios默认发送‘application/x-www-form-urlencoded‘格式数据 | Content-Type is not allowed b
文章目录概述报错1 Content-Type is not allowed by Access-Control-Allow-Headers in preflight respon报错2 返回状态码500好久没更博客了, 最近一直搞框架搞项目, 好多问题也都没有记录下来…好吧, 那从今天起来, 继续开始保持记录的好习惯, 先写一下在 axios 上踩下了这么多坑.概述通过以下两个报错, 来介绍解决使用 axios 来进行网络请求中的遇到的跨域问题报错一 对应 服务器端需要的处理方式报错二 对应原创 2020-07-02 00:45:30 · 1232 阅读 · 0 评论