首先放下作者大大的github地址:https://github.com/SJanJan/keep-web 接着我们看下项目 //main.js import Vue from 'vue' import App from './App.vue' import '@/styles/reset.scss ...
分类:
Web程序 时间:
2020-07-30 01:19:24
阅读次数:
97
import { createMachine, assign, interpret } from "xstate"; const elBox = document.querySelector("#box"); const elBody = document.body; const assignPoi ...
分类:
其他好文 时间:
2020-07-29 21:41:14
阅读次数:
60
mybatis 注解@Results、@Result、@ResultMap、@One的使用 column是数据库列名 property是实体类的属性名 javaType是实体类的类名(全路径格式) one对应的是一对一 many对应的是一对多 ...
分类:
其他好文 时间:
2020-07-29 12:36:35
阅读次数:
81
整合SpringMVC 1、在web.xml中配置前端控制器和中文乱码处理 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www ...
分类:
其他好文 时间:
2020-07-29 10:23:23
阅读次数:
64
1.MHA主库切换机制 1.读取配置中的指定优先级 candidate_master=1 check_repl_delay=0 2.如果数据量不同,数据量多的为主库 3.如果数据量相同,按照主机标签,值越小优先级越高 # 不问顺序 2.主机标签优先级测试 #配置MHA [root@db03 ~]# ...
分类:
其他好文 时间:
2020-07-28 22:49:04
阅读次数:
95
函数去抖: 单位时间内,无论触发多少次 只执行一次;这里的时间是短暂的 极端情况下,函数会一直处于等待状态 函数去抖常用于防止 短时间内重复执行函数 1 function debounce(func, delay) { 2 //去抖 3 var tId; 4 return function () { ...
分类:
其他好文 时间:
2020-07-28 17:01:42
阅读次数:
71
今天在用Mybatis的时,写测试验证插入操作时出现错误org.apache.ibatis.reflection.ReflectionException: There is no getter for property named XXX。 根据字面意思就是我没有为XXX属性写getter方法,课我 ...
分类:
Web程序 时间:
2020-07-28 14:01:32
阅读次数:
102
学习目的 基于第一个驱动程序框架,加入硬件操作,实现LED的点亮和熄灭操作 在上面学习中,已经搭建好了驱动框架,实现了在应用程序调用open、read函数时,通过系统调进入内核空间,调用驱动程序中与之对应的xxx_open、xxx_read函数。现在我们在驱动中加入相应的硬件操作,实现在应用程序调用 ...
分类:
其他好文 时间:
2020-07-27 09:53:10
阅读次数:
73
tap def tap(self: T, positions: List[Tuple[int, int]], duration: Optional[int] = None) -> T: """Taps on an particular place with up to five fingers, h ...
分类:
移动开发 时间:
2020-07-27 09:24:25
阅读次数:
114
在QT5.3中,在.pro使用的是:QT += widgets gui axcontainer 来使用ActiveQt框架中的QAxContainer模块(Qt4版本添加Qt += qaxcontainer)=),所以在项目在头文件中包含QAxWidget和QAxObject。 ...
分类:
其他好文 时间:
2020-07-26 19:22:38
阅读次数:
129