1、 2、 import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) export default new Vuex.Store({ state: { count: 0 }, mutations: { }, actions: { }, m ...
分类:
其他好文 时间:
2020-09-18 02:58:56
阅读次数:
27
主要三步: 1、state方法中混入with AutomaticKeepAliveClientMixin 2、继续在state方法中的build方法中添加super.build(context); 3、继续在state方法中添加 1 @override 2 // TODO: implement wa ...
分类:
其他好文 时间:
2020-09-18 02:17:18
阅读次数:
41
Dva.js 入门级教学文档-2 简介 四、Model 包下文件架构(重点) 1、namespace 2、state 3、reducers (1)、save (2)、state (3)、action (4)、payload (5)、return 4、effects (1)、* (2)、query ( ...
分类:
Web程序 时间:
2020-09-18 01:49:29
阅读次数:
43
初始化新的项目,在Configure的第一行可以看到如下代码: if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseExceptionHandler("/Home/Error"); app.UseHs ...
分类:
Web程序 时间:
2020-09-18 00:15:09
阅读次数:
40
1、线程状态 Thread.State public enum State { /** * Thread state for a thread which has not yet started. */ NEW,(新建) /** * Thread state for a runnable threa ...
分类:
编程语言 时间:
2020-09-18 00:09:42
阅读次数:
28
HttpClient发起请求,将响应结果(header和entity)设置到response中返回 package com.graph.oss.config; import java.io.IOException; import java.lang.reflect.Field; import jav ...
分类:
Web程序 时间:
2020-09-17 22:17:19
阅读次数:
51
VS2019+QT 制作自定义控件 1.新建Qt Designer Custom Widget 项目 2. 项目中会有如下2个文件 myMultiCustomControl.h myMultiCustomControlPlugin.h 3.打开 myMultiCustomControl.h ...
分类:
其他好文 时间:
2020-09-17 19:30:53
阅读次数:
18
#一、状态模式介绍 ##1、定义与类型 允许一个对象在其内部状态改变时,改变它的行为 类型:行为型 ##2、适用场景 一个对象存在多个状态(不同状态下行为不同),且状态可相互转换 ##3、优点 将不同的状态隔离 把各种状态的转换逻辑,分布到State的子类中,减少相互间依赖 增加新的状态非常简单 # ...
分类:
其他好文 时间:
2020-09-17 19:19:40
阅读次数:
31
效果:让波纹在鲨鱼身上动 设计思路:模型上有多个贴图,找到一张黑色背景的贴图(我们这里贴图使用的叠加的方式,而黑色背景的贴图,黑色(0,0,0,0)不会产生任何影响) 在unity中找到一个模型,找到它的材质面板,创建一个shader(unlit shader) Shader "Custom/Big ...
分类:
其他好文 时间:
2020-09-17 17:38:39
阅读次数:
35
通过item和with_items对重复操作进行循环执行示例:hosts:jack6_1remote_user:rootgather_facts:notasks:name:touchfilefile:path:"{{item}}"state:touchwith_items:"a""b""c"在jack6_1主机上创建三
分类:
其他好文 时间:
2020-09-17 17:20:16
阅读次数:
39