会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
DC
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
17
下一页
2020年4月10日
js获取url信息
摘要: 原文链接https://www.cnblogs.com/zhabayi/p/6419938.html
阅读全文
posted @ 2020-04-10 16:07 _DC
阅读(243)
评论(0)
推荐(0)
编辑
js 复制div内容到剪切板
摘要: //点击复制到剪切板 $("#copytocutpad").click(function(){ var div = document.getElementById('sharedurl'); if (document.body.createTextRange) { var range = docum
阅读全文
posted @ 2020-04-10 16:05 _DC
阅读(1737)
评论(0)
推荐(1)
编辑
2020年4月2日
ubuntu npm install 报错 (permission denied, mkdir '/usr/local/.......')
摘要: 增加增加 --unsafe-perm 参数
阅读全文
posted @ 2020-04-02 09:58 _DC
阅读(418)
评论(0)
推荐(0)
编辑
2020年3月31日
Java 读取项目中的配置文件
摘要: 读取导出jar包的相同目录的配置文件 System.getProperty("user.dir")+"\\"+fileName; 读取类所在目录的配置文件按 InputStreamis=TestAction.class.getClassLoader().getResourceAsStream("te
阅读全文
posted @ 2020-03-31 13:42 _DC
阅读(923)
评论(0)
推荐(0)
编辑
2020年3月27日
Java 发送http请求
摘要: 参考自:https://blog.csdn.net/u012527802/article/details/70172357 import javax.net.ssl.*; import java.io.*; import java.net.HttpURLConnection; import java
阅读全文
posted @ 2020-03-27 16:52 _DC
阅读(265)
评论(0)
推荐(0)
编辑
Linux下Java获取CPU 内存 磁盘IO 网络带宽使用率
摘要: 原文地址:https://www.cnblogs.com/gisblogs/p/3985393.html 一、CPU 使用proc文件系统,"proc文件系统是一个伪文件系统,它只存在内存当中,而不占用外存空间。它以文件系统的方式为访问系统内核数据的操作提供接口。用户和应用程序可以通过proc得到系
阅读全文
posted @ 2020-03-27 16:48 _DC
阅读(1334)
评论(0)
推荐(0)
编辑
Java 统计linux各种资源
摘要: 0 /** * 获取带宽上传下载速度 * @return */ public String getNetWorkSpeed() { boolean result = false; String detailInfo = ""; DecimalFormat df = new DecimalFormat
阅读全文
posted @ 2020-03-27 16:43 _DC
阅读(306)
评论(0)
推荐(0)
编辑
Java float保留2位或多位小数
摘要: 白 float f = 0.123456f; float f2 = (float)(Math.round(f*100))/100; System.out.println(f2); //结果:0.12
阅读全文
posted @ 2020-03-27 13:44 _DC
阅读(1906)
评论(0)
推荐(0)
编辑
2020年3月26日
nohup java -jar 启动java项目
摘要: 启动进程 nohup java -jar babyshark-0.0.1-SNAPSHOT.jar > log.file 2>&1 & 上面的2 和 1 的意思如下: 0 标准输入(一般是键盘)1 标准输出(一般是显示屏,是用户终端控制台)2 标准错误(错误信息输出) 关闭进程 //关闭进程 ps
阅读全文
posted @ 2020-03-26 18:40 _DC
阅读(14001)
评论(0)
推荐(0)
编辑
Linux命令发送Http GET/POST请求
摘要: Get请求 curl命令模拟Get请求: 1、使用curl命令: curl "http://www.baidu.com" 如果这里的URL指向的是一个文件或者一幅图都可以直接下载到本地 curl -i "http://www.baidu.com" 显示全部信息 curl -I "http://www
阅读全文
posted @ 2020-03-26 18:08 _DC
阅读(1727)
评论(0)
推荐(0)
编辑
上一页
1
···
4
5
6
7
8
9
10
11
12
···
17
下一页
公告