1.C标准的文件读写 可移植性强(跨平台) 1 FILE* pFile = nullptr; 2 const char* pcFilePath = ".//1.text"; 3 4 //文件写 5 errno_t err = fopen_s(&pFile, pcFilePath, "ab"); 6 ...
i++:先引用后加 ++I:先加后引用 示例代码: public static void main(String... args) { int a = 88; int c = a++; System.out.println(a); System.out.println(c); int b = 99; ...
分类:
其他好文 时间:
2021-05-24 08:08:47
阅读次数:
0
ThreadLocal 分析 首先我们看一下下面这个程序 public class ThreadLockDemo { //初始tl per对象名是 zs static ThreadLocal<per> tl = new ThreadLocal<per>() { protected per initi ...
分类:
其他好文 时间:
2021-05-24 07:59:20
阅读次数:
0
什么是方法 方法定义 方法调用 方法重载 方法类型也可相同,只要参数类型不同就行, 例: public static void main(String[] args) { double sum1 = add(6.0,2); System.out.println(sum1); } public sta ...
分类:
编程语言 时间:
2021-05-24 07:38:03
阅读次数:
0
在做h5上传照片功能时,对照片格式做了以下限制 <input type="file" accept="image/png,image/jpg,image/jpeg" > 但在微信浏览器中,这种写法会无法调用相机,从而直接进入图库 accept="image/*就是正常的 可以把accept="ima ...
分类:
其他好文 时间:
2021-05-24 07:03:49
阅读次数:
0
[获取手机尺寸](https://www.runoob.com/try/try.php?filename=tryjs_screen_all) ...
分类:
移动开发 时间:
2021-05-24 06:52:54
阅读次数:
0
如是Web程序,则修改客户端Web.config 做如下修改: //注意是客户端 <system.serviceModel> <bindings> <basicHttpBinding> <binding name="ClientSoap" maxBufferSize="2147483647" max ...
分类:
其他好文 时间:
2021-05-24 06:51:00
阅读次数:
0
在生产上部署的Ocelot,,ESTABLISHED到达3000后会不间断出现内部服务器错误及too many file等类似字样错误,经排查,因最近进行了服务器迁移,导致部文件描述符部分没有进行配置,进行配置后,故障恢复。整理如下: 一、系统最大文件描述符 查看系统最大文件描述符 cat /pro ...
分类:
其他好文 时间:
2021-05-24 06:29:41
阅读次数:
0
Log4j的使用 简介: Log4j是Apache的一个开源项目 通过使用Log4j,我们可以控制日志信息输送的目的地:控制台,文本,GUI组件.... 我们也可以控制每一条日志的输出格式; 通过定义每一条日志信息的级别,我们能够更加细致地控制日志的生成过程。最令人感兴趣的就是,这些可以通过一个配置 ...
分类:
其他好文 时间:
2021-05-24 06:10:43
阅读次数:
0
原生input 类型为file时需要对不同参数做出调整 <input type="file" name="file" id="file" accpet=".doc,.docx,application/msword,application/vnd.openxmlformats-officedocume ...
分类:
其他好文 时间:
2021-05-24 06:06:15
阅读次数:
0