摘要: 一、取消请求 const cancelToken = axios.CancelToken const source = cancelToken.source() //创建请求标识 this.source = source //将标识存储到vue对象 axios的请求配置config中配置属性canc 阅读全文
posted @ 2019-07-26 15:53 小肥猪。 阅读(951) 评论(0) 推荐(0) 编辑
摘要: 一、html页面中如何使用 1、引入 vue-router.js 2、安装插件 Vue.use(VueRouter) 3、创建路由对象 var router = new VueRouter({ // 4、配置路由 routes:[{ path:'/login', component:Login // 阅读全文
posted @ 2019-07-26 10:10 小肥猪。 阅读(623) 评论(0) 推荐(0) 编辑

摘要: vue.js vue入门 阅读全文
posted @ 2019-07-24 14:45 小肥猪。 阅读(9818) 评论(0) 推荐(0) 编辑

摘要: 一个基于vue + springboot +shiro搭建的移动端商品展示平台 阅读全文
posted @ 2019-07-22 13:54 小肥猪。 阅读(1488) 评论(0) 推荐(0) 编辑

2020年8月10日

摘要: 1、redis基本类型: key value string类型:一般的键值对, set('name','张三') hash类型:一般用于存储对象, HMSET('user','name','张三'),user:对应的key, name:代表字段 field,张三:代表内容,存储容量40多亿个键值对 阅读全文
posted @ 2020-08-10 10:06 小肥猪。 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1、引入vuex,使用store存储,一般存储于内存中,刷新页面后会丢失。 用法: import Vuex from 'vuex' import config from '@/env/config'; Vue.use(Vuex) export default new Vuex.Store({ sta 阅读全文
posted @ 2020-08-10 09:54 小肥猪。 阅读(1607) 评论(0) 推荐(0) 编辑
摘要: git分支介绍,git日常开发使用 阅读全文
posted @ 2020-08-10 09:38 小肥猪。 阅读(233) 评论(0) 推荐(0) 编辑
摘要: oracle事务 阅读全文
posted @ 2020-08-10 09:34 小肥猪。 阅读(1053) 评论(0) 推荐(0) 编辑

2019年7月26日

摘要: vue教程 阅读全文
posted @ 2019-07-26 08:50 小肥猪。 阅读(185) 评论(0) 推荐(0) 编辑

2019年7月25日

摘要: 一、slot其实就是填坑操作,父组件传递dom结构,是vue提供的一种内置组件(组件知识请查看上篇博客内容) 写法:<slot></slot> 例子: var child = {template:'<div><slot></slot></div>'} //子组件中预留出坑来,让父组件填坑 Vue.c 阅读全文
posted @ 2019-07-25 15:00 小肥猪。 阅读(616) 评论(0) 推荐(0) 编辑
摘要: 过滤器filter: 1、将数据进行添油加醋的操作。 2、过滤器分两种: 组件内的过滤器(组件内有效)、 全局过滤器 组件内:filters:{过滤器名:过滤器函数fn},fn内通过return 返回最终数据。 例如 filters:{transName:function(){reteurn ''} 阅读全文
posted @ 2019-07-25 14:10 小肥猪。 阅读(473) 评论(0) 推荐(0) 编辑
摘要: vue教程 axios router 阅读全文
posted @ 2019-07-25 11:34 小肥猪。 阅读(25581) 评论(0) 推荐(1) 编辑

导航