
Vue
Vue
qq_43067405
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
vue中全局注册组件
1在main.js中全局注册公用组件,多个页面都用到的组件就不用引入多次。import myPlugin from '@/components/common/index.js'Vue.use(myPlugin) //全局组件2 在公共组件中需要新建一个index.js文件进行注册处理。import loadMore from './dataLoading.vue' //下滑加载更多 import searchFirstLevel from './searchFirstLevel.vue'原创 2020-07-06 10:45:38 · 246 阅读 · 0 评论 -
Vue中关于async await的相关介绍
1传送门12转载 2020-06-24 17:16:25 · 217 阅读 · 0 评论 -
电商7.0项目的相关知识(一)
1点击标签进行跳转方式 <p @click="$router.push('/couponCenter')">领优惠券</p>2 动态图片和动态链接进行拼接 <img v-for="(itemAdv,indexAdv) in item && item.advDTOList" :key="indexAdv" v-lazy="$imgURL + itemAdv.imageUrl">3疑问知识点Carousel 是什么标签4轮播图的组件以及写原创 2020-05-27 14:54:36 · 132 阅读 · 0 评论 -
npm config set registry https://registry.npm.taobao.org的使用
添加链接11描述原创 2020-05-20 20:22:50 · 4082 阅读 · 0 评论 -
Vuex中actions和mutions的相关知识
actions1原创 2020-05-20 10:42:30 · 571 阅读 · 0 评论 -
vue中后台管理系统导航栏和侧边栏关联起来的写法
<template> <div class="myDiv"> <el-container style="position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden"> <el-header class="d-flex align-items-center" style="background-color:#545c64"> <h5 class="t原创 2020-05-13 23:46:32 · 2357 阅读 · 0 评论 -
关于bootstrap中的栅格系统和element-ui中的比较
bootstrap的栅格系统布局<div class="row"> <div class="col-12 col-sm-8 col-md-6 col-lg-4"></div></div>col-12是做小的情况,col-sm-8是小屏幕的情况,col-md-6是中屏幕的情况,col-lg-4是大屏幕的情况。bootstrap的栅格系统是将屏幕平均分成12份...原创 2020-05-13 22:54:21 · 1682 阅读 · 0 评论 -
在点击事件中的判断基于watch生成的一个变量,执行先后顺序
watch: { checkIndex(newData, oldData) { this.switchOrNot = true; console.log("切换了"); console.log(this.switchOrNot); } }, methods: { deleteButton(index) { this.checkIndex = index; if (this.ol原创 2020-05-13 17:33:53 · 359 阅读 · 1 评论 -
axios封装方式二
import axios from 'axios'import Cookies from 'js-cookie'import router from '@/router'import qs from 'qs'import { clearLoginInfo} from '@/utils'import isPlainObject from 'lodash/isPlainObject'const http = axios.create({ baseURL: window.SITE_原创 2020-05-13 09:05:16 · 149 阅读 · 0 评论 -
axios封装方式一
import axios from 'axios'import Cookies from 'js-cookie'import router from '@/router'import qs from 'qs'import isPlainObject from 'lodash/isPlainObject'import { clearLoginInfo } from '@/utils'import { Loading } from 'element-ui'//开始加载动画let loading原创 2020-05-13 08:41:25 · 150 阅读 · 0 评论 -
关于axios的get请求和Post请求之间的区别
不配置直接用简写的那种形式执行get请求axios.get('/user?ID=12345') .then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); });上面的请求也可以这样写axios.get('/user', { params: { ID: 12345 } }) .then(f原创 2020-05-13 00:17:38 · 1736 阅读 · 0 评论 -
关于content-type的相关解释
首先content-type是post请求才会有的,axios默认的是application/json,jquery默认的是application/x-www-form-urlencodedx-www-form-urlencoded是表单语法,传参的形式是 url?a=1&b=2&c=3,即a:1 b:2 c:3qs.parse()是将url解析成对象的形式;qs.stringify()是将对象解析成url的形式json字符串形式:‘{“a”:1,“b”:2,“c”:3}’;j.原创 2020-05-13 00:06:57 · 157 阅读 · 0 评论 -
vuex以及vuex中的modules
modules的使用方法原创 2020-05-10 19:26:34 · 158 阅读 · 0 评论