上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: import axios from "axios";//引入axios const service = axios.create({ baseURL: "/api", timeout: 600000, cancelToken: source.token }); // 请求拦截器 service.in 阅读全文
posted @ 2021-12-20 16:06 幻影之舞 阅读(35) 评论(0) 推荐(0)
摘要: 样图: 思路: 动态绑定class,用@mouseenter()绑定一个事件,并将列的索引index传入,然后在data里建一个变量来保存,默认-1 0的话页面刷新后第一个背景色就已经显示了 html <div class="item" v-for="(one, index) in category 阅读全文
posted @ 2021-12-19 17:54 幻影之舞 阅读(2862) 评论(0) 推荐(0)
摘要: vue创建项目时其他配置 1.关闭eslint语法检查 创建vue.config.js module.exports = { lintOnSave = false } 2.src配置别名 @ 创建jsconfig.json { "compilerOptions":{ "baseUrl":"./", 阅读全文
posted @ 2021-12-16 09:58 幻影之舞 阅读(51) 评论(0) 推荐(0)
摘要: //找到图片所在div @-webkit-keyframes rotation { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } } //找到img标签 img { -webki 阅读全文
posted @ 2021-12-08 10:46 幻影之舞 阅读(399) 评论(0) 推荐(0)
摘要: //前端分页 //定义变量detailTable const detailTable = { "page":1,//页数 "pageSize":10,//条数 "tolNum":0,//总条数 "yuanList":[],//所有数据 "table":[]//表格展示数据 } //点击分页时 con 阅读全文
posted @ 2021-12-07 11:28 幻影之舞 阅读(104) 评论(0) 推荐(0)
摘要: 1.先安装moment npm install moment 2.filter.js import Vue from "vue"; import moment from 'moment' Vue.filter('date-format',function(value,formatStr='YY-MM 阅读全文
posted @ 2021-12-03 17:11 幻影之舞 阅读(36) 评论(0) 推荐(0)
摘要: 安装: npm install better-scroll --save 使用; import Bscroll from 'better-scroll' this.$nextTick(() => { // 初始化滚动 this._initScroll() // 初始化tops this._initT 阅读全文
posted @ 2021-11-29 11:06 幻影之舞 阅读(111) 评论(0) 推荐(0)
摘要: 安装mockjs npm install mockjs --save 编写mock.js import Mock from 'mockjs' //引入mockjs import apiData from './data.json'//引入json格式的数据 Mock.mock('/seller', 阅读全文
posted @ 2021-11-18 11:45 幻影之舞 阅读(428) 评论(0) 推荐(0)
摘要: let time = 60 const intervalId = setInterval(()=>{ time -- if(time <=0 ){ clearInterval(intervalId) } }) 阅读全文
posted @ 2021-11-11 12:07 幻影之舞 阅读(452) 评论(0) 推荐(0)
摘要: var list = {'a':1,'b':2} console.log(Object.keys(list))//返回一个对象属性名组成的数组【'a','b'】 Object.keys(list).forEach(key=>{ const str = key + ':' + list[key] }) 阅读全文
posted @ 2021-11-11 11:05 幻影之舞 阅读(49) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页