上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: vue项目的src-utils的request.js封装axios请求模块 /** * 封装 axios 请求模块 */ import store from '@/store' import axios from 'axios' import JSONBig from 'json-bigint' c 阅读全文
posted @ 2020-11-15 23:42 缔造cool 阅读(2161) 评论(0) 推荐(0)
摘要: vue项目src-utils文件里的第三方时间day.js的使用(相对时间的设置) import Vue from 'vue' import dayjs from 'dayjs' // 加载中文语言包 import 'dayjs/locale/zh-cn' import relativeTime f 阅读全文
posted @ 2020-11-15 23:40 缔造cool 阅读(473) 评论(0) 推荐(1)
摘要: 后台src-store-index.js文件 import Vue from 'vue' import Vuex from 'vuex' // 导入本地存储中封装的 setItem, getItem 方法 import { setItem, getItem } from '../utils/stor 阅读全文
posted @ 2020-11-15 23:38 缔造cool 阅读(179) 评论(0) 推荐(0)
摘要: import Vue from 'vue' import App from './App.vue' import router from './router' import './plugins/element.js' // 导入时间插件 import moment from 'moment' // 阅读全文
posted @ 2020-11-15 23:25 缔造cool 阅读(164) 评论(0) 推荐(0)
摘要: 后台src-app.js详情 <template> <div id="app"> <!-- 路由占位符 --> <router-view></router-view> </div> </template> <script> export default { name: 'app' } </scrip 阅读全文
posted @ 2020-11-15 23:23 缔造cool 阅读(126) 评论(0) 推荐(0)
摘要: 后台中src-router-index.js文件详情 import Vue from 'vue' import VueRouter from 'vue-router' // import Login from '../components/Login.vue' const Login = () => 阅读全文
posted @ 2020-11-15 23:15 缔造cool 阅读(652) 评论(0) 推荐(0)
摘要: 给当前页面的最外层div class 加样式 /deep/ html, .home { position: fixed; height: 100%; width: 100%; background-color: #658ea9 !important; } 这是效果 阅读全文
posted @ 2020-11-15 13:51 缔造cool 阅读(6866) 评论(0) 推荐(0)
摘要: 1.导入vant cnpm i vant -S 在 main.js 中加载注册 Vant 组件 import Vue from 'vue' import Vant from 'vant' import 'vant/lib/index.css' Vue.use(Vant) 2.移动端 REM 适配介绍 阅读全文
posted @ 2020-11-15 00:48 缔造cool 阅读(170) 评论(0) 推荐(0)
摘要: 一、为什么要使用路由懒加载 为给客户更好的客户体验,首屏组件加载速度更快一些,解决白屏问题。 二、定义 懒加载简单来说就是延迟加载或按需加载,即在需要的时候的时候进行加载。 三、使用 常用的懒加载方式有两种:即使用vue异步组件 和 ES中的import 1、未用懒加载,vue中路由代码如下 imp 阅读全文
posted @ 2020-10-25 09:10 缔造cool 阅读(297) 评论(0) 推荐(0)
摘要: 作为前端开发,熟悉四大内核是非常有必要的。四大内核的解析不同使网页渲染效果更具多样化。下面总结一下各常用浏览器所使用的内核。 1、IE浏览器内核:Trident内核,也是俗称的IE内核; 2、Chrome浏览器内核:统称为Chromium内核或Chrome内核,以前是Webkit内核,现在是Blin 阅读全文
posted @ 2020-10-23 16:48 缔造cool 阅读(84) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 11 下一页