配置之后使用:$store.state.dialog.show用来获得状态使用 $store.commit('switch_dialog') 来触发 mutations 中的 switch_dialog 方法mutations 中的方法是不分组件的 ,mutations里的操作必须是同步的。只是官方... ...
分类:
其他好文 时间:
2018-08-11 20:02:41
阅读次数:
147
web 开发 前端 HTML 数据显示,负责内容 css 页面美化,负责样式 js 页面特效,与用户交互,负责行为 后端 PHP / JAVA / asp.net / python / Ruby / node.js / 1. javascript 简介 1.1 什么是javascript 1.1.1 ...
分类:
Web程序 时间:
2018-08-10 12:24:27
阅读次数:
243
1. 定义接口名称 /domain/login-guard.ts 2. 定义actions /ngrx/actions/login-guard.action.ts 3. 定义reducers /ngrx/actions/login-guard.reducer.ts 4. login.service. ...
分类:
其他好文 时间:
2018-08-09 12:19:47
阅读次数:
231
Actions是Struts2框架的核心,因为它们适用于任何MVC(Model View Controller)框架。 每个URL映射到特定的action,其提供处理来自用户的请求所需的处理逻辑。但action还有另外两个重要的功能。 首先,action在将数据从请求传递到视图(无论是JSP还是其他 ...
分类:
其他好文 时间:
2018-08-08 21:24:43
阅读次数:
197
第一步:要想使用OCUpload首先前端需要导入js包 <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.ocupload-1.1.2.js"></script> 第二步:提供一个上传按钮 ...
分类:
Web程序 时间:
2018-08-07 19:03:24
阅读次数:
238
MyCAT 配置解析 server.xml Mycat的配置文件,设置账号、参数等schema.xml Mycat对应的物理数据库和数据库表的配置rule.xml Mycat分片(分库分表)规则 一 :wrapper.conf --配置jdk wrapper.java.command=D:/Prog ...
分类:
其他好文 时间:
2018-08-06 11:45:32
阅读次数:
148
根据When an overlay node with actions is copied there is currently a SpriteKit bug where the node’s isPaused property might be set to true提示,SpriteKit有一... ...
分类:
其他好文 时间:
2018-08-04 14:33:06
阅读次数:
129
1、引入.jarl文件依赖 2、引入aop相关的jar 3、编写Interceptor拦截类,两种方式实现 注意:拦截的方法要是一个bean调用才能生效,比如:拦截的notifyCash()方法,需要独立在一个类,然后被其他类调用 被调用: ...
分类:
编程语言 时间:
2018-08-01 18:21:39
阅读次数:
319
这里介绍使用google style 一、安装插件 1、settings -> plugins 选择 Browse repositories… 2、搜索google-java-format 和 Save Actions,安装 3、重启IDE,启用google-java-format 4、 启用Sav ...
分类:
其他好文 时间:
2018-07-31 23:24:24
阅读次数:
19477
总览 责任链的终点是Template,其实现类确定了actions被调用的具体方法,决定了Transaction的流程逻辑。从Transaction着手,主要分为2种: query 查询数据交易,负责查询类的请求 twophase 业务提交交易,负责需要提交的请求。这里又分3步:pre(提供初始页面 ...
分类:
其他好文 时间:
2018-07-30 12:13:33
阅读次数:
1519