从CEdit派生出CEditEx类,并在CEditEx类中添加虚函数PreTranslateMessage,添加如下代码 BOOL CEditEx::PreTranslateMessage(MSG* pMsg) { // 编辑框快捷键操作 if(WM_KEYDOWN == pMsg->message ...
分类:
编程语言 时间:
2020-07-10 09:51:19
阅读次数:
65
Windows-bat-loop for restart exe July 10, 2020 2:09 AM 周期重启某个指定的程序 @echo off :start choice /t 10 /d y /n >nul cd C:\Users\Administrator\Desktop\XXXX.e ...
一、modify easy-mock-->/api/gathering/search/{page}/{size} { "flag": true, "code": 20000, "message": "@string", "data": { "total": "@integer(60, 100)", ...
分类:
其他好文 时间:
2020-07-09 22:05:02
阅读次数:
61
统一结果返回 目前的前后端开发大部分数据的传输格式都是json,因此定义一个统一规范的数据格式有利于前后端的交互与UI的展示。 统一结果的一般形式 是否响应成功; 响应状态码; 状态码描述; 响应数据 其他标识符 结果类枚举 前三者可定义结果枚举,如:success,code,message @Ge ...
分类:
其他好文 时间:
2020-07-09 20:54:17
阅读次数:
76
一、嵌套循环 循环语句可以在循环内使用任意类型的命令,包括其他循环命令。这种循环叫作嵌套循环(nested loop)。注意,在使用嵌套循环时,你是在迭代中使用迭代,与命令运行的次数是乘积关系。不注意这点的话,有可能会在脚本中造成问题。 这里有个在for循环中嵌套for循环的简单例子。 1 $ ca ...
分类:
系统相关 时间:
2020-07-09 09:25:33
阅读次数:
103
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u ...
SpringBoot与消息 消息概述 大多应用中,可通过消息服务中间件来提升系统异步通信、扩展解耦能力 消息服务中两个重要概念: ? 消息代理(message broker)和目的地(destination) 当消息发送者发送消息以后,将由消息代理接管,消息代理保证消息传递到指定目的地。 消息队列主 ...
分类:
编程语言 时间:
2020-07-08 01:32:01
阅读次数:
82
1、在 app 目录下创建 templatetags 目录(目录名只能是 templatetags)。 如: app/ __init__.py models.py templatetags/ __init__.py mytag.py views.py 2、创建任意 .py 文件,如:mytag.py ...
分类:
其他好文 时间:
2020-07-08 01:15:14
阅读次数:
66
本文的校验有两个要去,1是必填,2填写的必须是中文 将校验规则改为 validate: [ { required: true, message: "请输入goods_name", trigger: "blur" }, //必填校验 { //正则匹配 required: true, pattern: ...
分类:
其他好文 时间:
2020-07-07 12:54:54
阅读次数:
50
现代传感器的接口:中断驱动的ADC驱动程序 Interfacing with modern sensors: Interrupt driven ADC drivers 研究了如何编写一个阻塞的模数转换器(ADC)驱动程序和一个使用轮询技术不阻塞应用程序流的驱动程序。轮询外围设备的驱动程序效率低下,如 ...
分类:
其他好文 时间:
2020-07-07 09:44:08
阅读次数:
60