单例 A single-element enum type is often the best way to implement a singleton. 单元素的枚举类型已经成为实现Singleton的最佳方法。 一般有两种方式,对于比较简单的效果实现,可以直接在枚举里写方法。 public en ...
分类:
其他好文 时间:
2020-07-26 15:34:09
阅读次数:
55
Ubuntu GNOME 桌面不是很稳定经常发生卡死的情况以下几种方法可以在不重启的条件下恢复桌面 Method 1 -X11 restart Alt+F2 按r 会话自动重启 Method 2 -Wayland restart Wayland 是一个新的display协议,Gnome Shell ...
分类:
系统相关 时间:
2020-07-26 15:23:12
阅读次数:
145
SAP EPIC Interpretation Algorithms For Bank Statement Algorithms posting rule auto-calculation ...
分类:
其他好文 时间:
2020-07-26 01:43:58
阅读次数:
97
In this note,you will not find the concept of QS and the method of how to compute the cost of time and space of this algorithm。This page will not refe ...
分类:
其他好文 时间:
2020-07-26 01:23:01
阅读次数:
76
对象关联 就是一个对象中使用另外一个对象 1 依赖关系 代码中一般指由局部变量、函数参数、返回值建立的对于其他对象的调用关系。 class A{ public B method(C c,D d){ E e = new E();. .. B b = new B(); ... return b; }}这 ...
分类:
其他好文 时间:
2020-07-26 01:08:49
阅读次数:
67
/** * 控制器类 */ @Controller @RequestMapping("/user")//作用在类上:相当于一级访问目录 public class UserController { /** * value: 和path属性作用一样,指定通过什么样的请求才能方法该方法 * method: ...
分类:
移动开发 时间:
2020-07-25 23:48:07
阅读次数:
77
html代码 用到了vant组件 vant文档地址 <template> <div class="home"> <van-pull-refresh v-model="refreshing" @refresh="onRefresh"> <van-list v-model="loading" :fini ...
分类:
其他好文 时间:
2020-07-24 21:24:52
阅读次数:
167
insert into t_user (id, avatar, create_time, email, nick_name, password, type, update_time, user_name, file_id, register_method, token, short_message, ...
分类:
数据库 时间:
2020-07-24 16:25:00
阅读次数:
102
问题 在处理页面重新渲染时通常的做法是: 用vue-router重新路由到当前页面,页面是不进行刷新的 采用window.reload(),或者router.go(0)刷新时,整个浏览器进行了重新加载,闪烁,体验不好 使用 v-if 重新渲染部分组件或容器 需要重新渲染的内容 <div v-if=" ...
分类:
其他好文 时间:
2020-07-24 16:13:41
阅读次数:
81
一、什么是简单工厂模式? 简单工厂模式实质是一个工厂类根据传入的参数(产品类继承自同一个工厂类),动态的创建哪个产品类的是实例。 二、简单工厂模式的结构 工厂角色:简单工厂模式的核心,负责创建所有具体产品类的实例,工厂类可以被外界直接调用,创建所需的产品实例。 抽象产品角色:是指具体产品角色的父类, ...