书架

书架

=一个知识书库=

Vue.js十分钟入门Vuex

Vue.js十分钟入门Vuex

# 一. 什么是Vuex? ![](http://www.lixianglong.cn/bg_store/img/content/5318700-225997bf711cb64c.png) Vuex是一个专门为Vue.js应用程序开发的状态管理模式, 它采用集中式存储管理所有组件的公共状态, 并以相应的规则保证状态以一种可预测的方式发生变化. <!-- more --> ![Vuex核心](http://www.lixianglong.cn/bg_store/img/content/image_1bqru9fcu1pq917q61ktk18cn1sov9.png) 上图中绿色虚线
more...
springboot 项目部署到外部tomcat

springboot 项目部署到外部tomcat

# springboot 项目部署到外部tomcat ![](http://www.lixianglong.cn/bg_store/img/content/Ehfe9gE.jpg) <!-- more --> 最近在用spring boot 弄了一个学习型的项目,学习一下spring boot怎样构建项目,spring boot 本身是内置tomcat的,如果想部署到外部tomcat, 就要做一些改变。 ## 1 默认打包方式是jar包,改成war包打包,在pom.xml 里 ```java <packaging>war</packaging> ``` ## 2 在m
more...
tomcat8配置管理员

tomcat8配置管理员

**配置** ### 要使用localhost:8080/manager 需要配置/home/tomcat/apache-tomcat-8.5.29/conftomcat_user.xml在 ```html <tomcat-users> </tomcat-users> ``` <!--more--> matery 标签中添加 ```html <role rolename="manager"/> <role rolename="manager-gui"/> <role rolename="admin"/> <role rolename
more...
谷歌浏览器network请求时间分析!

谷歌浏览器network请求时间分析!

# 谷歌浏览器network请求时间分析! 谷歌浏览器network请求时间分析及优化方法: network工具功能强大,能够让我看到网页加载的信息,比如加载时间,和先后顺序,是否是并行加载,还是堵塞加载。 ![](http://www.lixianglong.cn/bg_store/img/content/20170912103616897.jpg) <!-- more -->   默认情况下有八列:   (1).Name:表示加载的文件名。   (2).Method:表示请求的方式。   (3).Status:表示状态码(200为请求成功,304表示从缓存读
more...
this.$confirm框报错Uncaught (in promise) cancel

this.$confirm框报错Uncaught (in promise) cancel

**element-ui 弹窗的this.$confirm框报错Uncaught (in promise) cancel** **这是因为你点击了取消或者是关闭弹窗,但是你没有写catch。** <!--more--> 正确的写法是 ```javascript this.$confirm('确定清空试题篮所有试题?', '提示', {                     type: 'warning'                 }).then(() => {                       localStorage.setItem('cho
more...