摘要: 1、查看指定端口9999的进程id netstat -tunlp | grep 9999 2、杀进程id kill -s 9 进程ID 3、后台启动node nohup node serve.js > log.out 2>&1 & 阅读全文
posted @ 2022-07-27 22:58 枫叶ak 阅读(51) 评论(0) 推荐(0)
摘要: TypeScript 忽略类型检查 1、单行忽略 type a = string // @ts-ignore let a = 0 2、跳过对某些文件的检查 (添加到该文件的首行才起作用) // @ts-nocheck type a = string a = 2 a = "4" 阅读全文
posted @ 2022-07-19 11:12 枫叶ak 阅读(2740) 评论(0) 推荐(0)
摘要: 代码:(和formdata差不多,适用于application/x-www-form-urlencoded 格式传数据) let params = new URLSearchParams() params.append('param',JSON.stringify(data)) 阅读全文
posted @ 2022-04-15 12:17 枫叶ak 阅读(1039) 评论(0) 推荐(0)