参考博文地址 https://www.cnblogs.com/cplemom/p/11264040.html https://www.cnblogs.com/netcs/p/12789162.html var client = _httpClientFactory.CreateClient(); c ...
分类:
Web程序 时间:
2020-07-02 21:34:28
阅读次数:
76
记录下webpack-dev-server的用法. 首先,我们来看看基本的webpack.config.js的写法 module.exports = { entry: './src/js/index.js', output: { path: './dist/js', filename: 'bundl ...
分类:
Web程序 时间:
2020-07-02 16:20:47
阅读次数:
98
当前环境: win10+vs2019+netcore3.1 添加Nuget包引用:NLog.Web.AspNetCore 2. 添加 nlog.config配置文件 或者安装包 nlog.confg <?xml version="1.0" encoding="utf-8" ?> <nlog xmln ...
分类:
Web程序 时间:
2020-07-02 00:26:06
阅读次数:
217
SHOW [TEMPORARY] TABLES [FROM <db>] [LIKE '<pattern>'] [LIMIT <N>] [INTO OUTFILE <filename>] [FORMAT <format>]例 show tables from tutorial like '%' lim ...
分类:
其他好文 时间:
2020-07-01 17:27:55
阅读次数:
101
history 命令语法格式 history [-e] [-d offset] [n] or history -anrw [filename] or history -ps arg [arg...] 选项 说明 -c 表示清空历史命令 -d,offset 删除历史中指定的第offset 个命令 n ...
分类:
系统相关 时间:
2020-07-01 12:52:43
阅读次数:
56
使用零拷贝对文件高效的切片和合并 对文件的切片/合并在应用中是一个很常见的需求,使用 FileChannel的 transferTo / transferFrom 的零拷贝方法(需要操作系统支持),可以高效的完成。 切片 /** * 对文件按照指定大小进行分片,在文件所在目录生成分片后的文件块儿 * ...
分类:
其他好文 时间:
2020-07-01 12:19:31
阅读次数:
70
一、fatwrite命令 1.fatwrite命令用于将DRAM中的数据写入EMMC设备中,命令格式如下: fatwrite <interface> <dev[:part]> <addr> <filename> <bytes> interface:接口,比如mmc; dev:设备号; part:分区 ...
分类:
系统相关 时间:
2020-06-30 12:47:37
阅读次数:
129
在windows系统中,可以通过Regsvr32来实现注册ocx或者dl, 编程时,调用Regsvr32来注册,却不能正常执行。尤其是在Win7系统中,需要管理员身份才能运行。 使用下面的代码则能正常注册。 //注册 function RegisterDllServer(FileName: stri ...
pass语句,可在代码块中使用它来让Python什么都不要做。 pass语句还充当了占位符,它提醒你在程序的某个地方什么都没有做,并且以后也许要在这 里做些什么。 1 def count_words(filename): 2 3 try: 4 with open(file_name) as file ...
分类:
编程语言 时间:
2020-06-28 18:18:24
阅读次数:
78
一、脚本 #!/bin/bash #**************************************************** #Date: 2020-06-28 #Author: Damon Ye #FileName: UpTimeMonitor.sh #Description:Th ...
分类:
其他好文 时间:
2020-06-28 12:45:16
阅读次数:
74