02 2020 档案
摘要:1 pad String.prototype.PadLeft = function(totalWidth, paddingChar) { if ( paddingChar != null ) { return this.PadHelper(totalWidth, paddingChar, false
阅读全文
摘要:下载源码分析 是launch4j-maven-plugin 搜索路径的问题 即使安装了jre 配置了环境变量 launch4j只去搜指定位置的注册表 如果只想本地编译使用 将jre 指定为java_home即可 如果想任何电脑都能打开 就打成jar包 用launch4j 打一个jre到exe里
阅读全文
摘要:1 使用match 不能加/g 否则无效 2 使用matchAll 需要先定义一个RegExp对象 const regexp = RegExp(/,"(.+)"\)/,'g'); const matches = str.matchAll(regexp); for (const match of ma
阅读全文
摘要:谷歌浏览器chrome80 突然什么都打不开了 重装也没用 喔唷,崩溃啦 增加启动参数 --disable-features=RendererCodeIntegrity
阅读全文
摘要:1 替换文件某一行 将文件./config/patchconfig/patch_config.json 的第二行替换为 "path": "../patchfiles", 将文件aaa.txt中的第三行替换为888 content='"path": "../patchfiles", ' sed -i
阅读全文
摘要:1 根据ip替换 var OSInfo = Environment.OSVersion; string pathpart = "hosts"; if (OSInfo.Platform == PlatformID.Win32NT) { //is windows NT pathpart = "syste
阅读全文
摘要:smbclient //10.24.1.1/xx -U username%password << cmd mask "" recurse ON prompt OFF cd \test\test lcd '/Share/target' mget * cmd
阅读全文
摘要:var fs=require('fs'); var options={ encoding:'utf8', withFileTypes:true } var renameFile=function(path){ console.log('当前目录:'+path); fs.readdir(path,op
阅读全文
摘要:1 执行bin目录下的脚本启动查看具体的报错信息 PS E:\Program Files\JetBrains\IntelliJ IDEA 2019.3.2\bin> .\idea.bat OpenJDK 64-Bit Server VM warning: Option UseConcMarkSwee
阅读全文
摘要:1 解压 rem 平铺开@echo off echo 解压%1到%2 7z.exe e %1 -y -o%2 echo 解压%1完成rem 完整目录7z.exe x E:\npm.zip -y -o"C:\Users\AppData\Roaming\npm"\ -aoarem 压缩当前目录到test
阅读全文
摘要:一 修改扩展 1 直接cmd执行 去掉后缀 for /r %a in (*.bt) do ren "%a" "%~na" 修改后缀 for /r %a in (*.bt) do ren "%a" "%~na.test" 2 保存脚本 for /r %%a in (*.bt) do ren "%%a"
阅读全文
摘要:https://www.alexgoldcheidt.com/raspberry-pi-aria2-web-ui/?__cf_chl_captcha_tk__=79b7cacad41c7817f12080af5a4577d57b69f8e7-1580699959-0-ATVbJrKXxCiy9LLC
阅读全文
摘要:1 下载openjdk https://adoptopenjdk.net/ 2 解压 3 在解压后的目录中 新建批处理文件 color 0a ::删除JAVA_HOME wmic ENVIRONMENT where "name='JAVA_HOME'" delete ::删除ClASSPATH wm
阅读全文