- 博客(9)
- 收藏
- 关注
原创 小程序封装request请求
const request = (response) => { return new Promise((resolve, reject) => { wx.request({ url: response.url, method:response.method?response.method:'GET', data:response.data?response.data:null, .
2022-05-31 14:00:25
65
原创 vue2 脚手架组件使用动画
vue 过渡的简单使用将我们想要使用动画的那一块内容用transition包裹起来,然后在style里面添加样式,当然我们需要添加单击事件,自定义一个属性来控制盒子的显示与隐藏,在添加动画来修饰他的显示与隐藏。如下<template> <div> <div @click="showbox" style="border: 1px black solid; width: 50px"> <span v-if="isture">隐藏&
2022-05-09 20:09:19
393
原创 vue-router base选项和路由hash与history模式。
base 选项的默认值为 “/”,1.当想要一个域名运行多个项目的时候,这时候需要把const router = new VueRouter({ base:'xinwen2', routes,})里面的base值是代表我们项目的名称,可以随意起,2.接下来将vue.config当中添加const { defineConfig } = require('@vue/cli-service')module.exports = defineConfig({ transpil
2022-04-29 19:27:27
4572
原创 vant简单使用方法,vue-cli脚手架使用。
全局注册使用:(注册以后可以在任何子组件使用)1.在main.js里面导入两个包import Vue from 'vue';import { CountDown } from 'vant'; 2.大括号里面是要导入的vant组件,导入完毕之后运用Vue.component注册Vue.component(CountDown.name, CountDown);局部注册:(只在单文件组件使用)1.在子组件里面运用import 导入要使用的包,不再需要Vue.use也可以使用。
2022-04-28 20:48:38
874
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人