自定义注解 import java.lang.annotation.*;@Target({ElementType.FIELD,ElementType.TYPE})@Retention(RetentionPolicy.RUNTIME)@Documentedpublic @interface Check ...
分类:
其他好文 时间:
2021-02-24 12:52:31
阅读次数:
0
准备2张图片用于替换选中和未选中时的样式 drawable下准备两个对应的layer-list btn_radio_on.xml <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android ...
分类:
移动开发 时间:
2021-02-22 12:40:31
阅读次数:
0
网页请求报错: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. ...
分类:
数据库 时间:
2021-02-20 12:31:09
阅读次数:
0
如果我们不想让也面初始化的时候就加载所有的组件,就会用到动态组件 常用的场景是多tab的页面,每一个tab是一个组件这种 示例1:这是没有使用动态组件的时候 <template> <div> <button @click="check">{{ !show ? "展示组件" : "隐藏组件" }}</ ...
分类:
其他好文 时间:
2021-02-20 12:15:23
阅读次数:
0
一、keepalived的作用 1、短连接:客户端连接上服务端,然后结束请求后,由客户端或者服务端进行http连接的关闭。下次再发送请求的时候,客户端再发起一个连接,传送数据,关闭连接。 2、长连接:客户端发送connection:keep-alive头给服务端,且服务端也接受这个keep-aliv ...
分类:
Web程序 时间:
2021-02-20 12:12:43
阅读次数:
0
今天新建一个spring web项目,发现报错了。问题如下。 排除了网络问题,找到了解决办法。打开设置,点击check connection 输入 https://start.spring.io 点击OK 成功创建 ...
分类:
编程语言 时间:
2021-02-19 13:37:10
阅读次数:
0
valgrind是很好的检查内存泄漏的工具 使用命令: $ valgrind --tool=memcheck --log-file=/root/valgrind_log_all --leak-check=full --error-limit=no --show-reachable=yes --tra ...
分类:
其他好文 时间:
2021-02-19 13:36:36
阅读次数:
0
一眼二分。 注意点: 在读入n之后要使用getchar接收后面的换行符,否则会使for循环内的getline读入这个换行符,导致第一个字符串读取错误。 最后输出答案前要先check一遍 const int N=110; string a[N]; string suffix; int n; bool ...
分类:
其他好文 时间:
2021-02-17 14:18:36
阅读次数:
0
试除法求约数。 int check(int n) { int res=1; for(int i=2;i*i<=n;i++) if(n % i == 0) { res+=i; if(i != n/i) res+=n/i; } return res; } int main() { vector<int> ...
分类:
其他好文 时间:
2021-02-17 14:12:57
阅读次数:
0
工作区: 就是git仓库的目录就属于工作区 [root@node4 git]# pwd/git[root@node4 git]# lsreadme.txt[root@node4 git]# ls -a. .. .git readme.txt[root@node4 git]# cd .git/[roo ...
分类:
其他好文 时间:
2021-02-16 12:34:56
阅读次数:
0