Thread //创建线程方式一:继承Thread类,重写run()方法,调用start开启线程 public class TestThread01 extends Thread { @Override public void run() { //run方法线程体 for (int i = 0; i ...
分类:
其他好文 时间:
2021-02-08 12:36:43
阅读次数:
0
package com.mayikt.stream; import com.mayikt.entity.UserEntity; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.u ...
分类:
其他好文 时间:
2021-02-08 12:35:00
阅读次数:
0
layer.open({ type: 2, area: ['800px','750px'], fix: false, //不固定 maxmin: true, shade: 0.3, title: "标题", content: url, btn: ['关闭'], // 弹层外区域关闭 shadeClo ...
分类:
其他好文 时间:
2021-02-08 11:45:34
阅读次数:
0
get和post的区别主要有以下几方面: 常规 区别: 1、url可见性: get,参数url可见; post,url参数不可见 2、数据传输上: get,通过拼接url进行传递参数; post,通过body体传输参数 3、缓存性: get请求是可以缓存的 post请求不可以缓存 4、后退页面的反应 ...
分类:
其他好文 时间:
2021-02-08 11:43:20
阅读次数:
0
select2的搜索框不能输入内容 原因:原来是模态对话框强制使自己处于焦点状态,导致select2的搜索框无法获取焦点所致。 解决办法:在初始化中重写模态对话框的enforceFocus函数 $.fn.modal.Constructor.prototype.enforceFocus = funct ...
分类:
其他好文 时间:
2021-02-06 11:40:17
阅读次数:
0
SpringBoot actuator(自定义端点类) 1、编写自动端点类很简单,只需要在类前面使用@Endpoint注解 EndPoint中id 来表示url路径 2、使用@ReadOperation //显示监控指标 3、使用@WriteOperation //动态修改指标,以post方式修改 ...
分类:
编程语言 时间:
2021-02-05 10:47:22
阅读次数:
0
public class URLDownload { public static void main(String[] args) throws IOException { URL url=new URL("https://m10.music.126.net/20210204001424/b2ecd ...
分类:
Web程序 时间:
2021-02-04 12:17:48
阅读次数:
0
1 底层原理不一样: 1 browserRouter使用的是H5的history API,不兼容IE9以下的版本。(H5新增的) 2 HashRouter使用的是URL的哈希值。(锚点,会发送历史记录) 2 url表现形式不宜用: 1 BrowserRouter 的路径中没有#,localhost: ...
分类:
其他好文 时间:
2021-02-04 12:13:30
阅读次数:
0
2.1 初始化 所有Flask程序都必须创建一个程序实例,程序实例是Flask类的对象: from flask import Flask app = Flask(__name__) 2.2 路由和视图函数 处理URL和函数之间关系的程序称为路由。在Flask中,使用程序实例提供的app.route修 ...
分类:
其他好文 时间:
2021-02-04 11:50:55
阅读次数:
0
1 引擎:Hi!Spider, 你要处理哪一个网站? 2 Spider:老大要我处理xxxx.com。 3 引擎:你把第一个需要处理的URL给我吧。 4 Spider:给你,第一个URL是xxxxxxx.com。 5 引擎:Hi!调度器,我这有request请求你帮我排序入队一下。 6 调度器:好的 ...
分类:
其他好文 时间:
2021-02-04 11:47:56
阅读次数:
0