上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 63 下一页
摘要: <style> * { margin: 0; padding: 0; } .container { width: 350px; border: 1px solid red; display: flex; flex-wrap: wrap; justify-content: space-between; 阅读全文
posted @ 2021-09-24 22:26 吴小明- 阅读(211) 评论(0) 推荐(0) 编辑
摘要: html: <style> .div { width: 200px; height: 200px; background-color: greenyellow; } </style> </head> <body> <div class="div">一些文字</div> <script> const 阅读全文
posted @ 2021-09-24 21:45 吴小明- 阅读(455) 评论(0) 推荐(0) 编辑
摘要: vue.config.js: devServer: { before: function (app) { app.get('/aaa', (req, res) => { res.json({ errno: 0, data: { id: 1, name: '小明' } }) }) } } App.vu 阅读全文
posted @ 2021-09-24 20:46 吴小明- 阅读(230) 评论(0) 推荐(0) 编辑
摘要: <template> <div id="app"> <transition-group tag="ul" name="list"> <li v-for="(item,index) in list" :key="index">{{item}}<button @click="handleDelete(i 阅读全文
posted @ 2021-09-23 17:40 吴小明- 阅读(126) 评论(0) 推荐(0) 编辑
摘要: fast mock官网地址:https://www.fastmock.site/#/projects 1、创建项目 2、添加接口 3、使用接口 <script> import axios from 'axios' export default { created() { const url = 'h 阅读全文
posted @ 2021-09-23 17:03 吴小明- 阅读(2470) 评论(0) 推荐(0) 编辑
摘要: store/index.js: import Vue from 'vue' import Vuex from 'vuex' import school from './school' import { createLogger } from 'vuex' import logger from 'vu 阅读全文
posted @ 2021-09-23 14:16 吴小明- 阅读(1634) 评论(0) 推荐(0) 编辑
摘要: ProjressCircle.vue <template> <div class="progress-circle"> <svg :width="size" :height="size" viewBox="0 0 100 100"> <circle r="50" cx="50" cy="50" fi 阅读全文
posted @ 2021-09-22 17:44 吴小明- 阅读(42) 评论(0) 推荐(0) 编辑
摘要: <template> <div id="app"> <ul> <li v-for="(item, index) in slideData" :key="index"> <transition> <img :src="item.img" v-if="index currentIndex" /> </t 阅读全文
posted @ 2021-09-12 21:51 吴小明- 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: export function shuffle(arr) { let _arr = arr.slice() for (let i = 0; i < _arr.length; i++) { const j = _getRandomNumber(0, i) const temp = _arr[i] _a 阅读全文
posted @ 2021-08-29 20:38 吴小明- 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 方法一: 1、data中定义timer变量 data() { return { timer: null } } 2、在使用定时器时将定时器赋值给timer methods: { toggleImg() { this.timer = setInterval(() => { this.currentIn 阅读全文
posted @ 2021-08-29 20:01 吴小明- 阅读(2759) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 63 下一页