会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
卓能文
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
25
下一页
2025年4月14日
JavaScript console详细使用方法
摘要: 以下是关于 JavaScript 中 console 对象的详细使用方法,涵盖基础输出、调试辅助、性能分析及样式定制等功能,并结合实际示例说明: 一、基础输出方法 console.log() 最常用的调试方法,输出任意类型数据(字符串、数字、对象等)。支持占位符和模板语法:console.log('
阅读全文
posted @ 2025-04-14 09:28 卓能文
阅读(486)
评论(0)
推荐(0)
2025年4月13日
pwershell获取环境变量的值
摘要: 在 PowerShell 中获取环境变量的值可以通过多种方法实现,以下是常见的几种方式及其具体操作步骤和注意事项: 使用 $env: 前缀直接访问 通过 $env: 后接环境变量名称(无需 $ 符号)可以直接获取其值。这是最简洁的方式,适用于快速查看单个变量的值。 示例:$env:PATH # 获取
阅读全文
posted @ 2025-04-13 08:31 卓能文
阅读(1491)
评论(0)
推荐(0)
Windows命令行下正则表达式
摘要: 在Windows命令行环境下,判断文件名是否满足某个正则表达式可以通过以下方法实现,结合不同工具和脚本语言的特性: 一、使用 PowerShell(推荐) PowerShell原生支持正则表达式,可通过 Get-ChildItem 和 -match 运算符直接匹配文件名: 基本匹配 列出当前目录下符
阅读全文
posted @ 2025-04-13 00:21 卓能文
阅读(620)
评论(0)
推荐(0)
2025年4月10日
Unix Shell中的文件模式匹配(Pattern Matching)
摘要: Unix Shell中的文件模式匹配(Pattern Matching)是文件操作和脚本编程中的核心功能,主要用于文件名匹配、路径搜索和字符串处理。以下是其核心用法及注意事项的详细总结: 一、基本通配符用法 星号(*) 匹配任意长度(包括零长度)的字符串。例如: f* 匹配所有以 f 开头的文件(如
阅读全文
posted @ 2025-04-10 20:36 卓能文
阅读(215)
评论(0)
推荐(0)
2025年4月6日
go限制文件名上传
摘要: package main import ( "fmt" "io" "net/http" "os" "path/filepath" "regexp" ) const ( uploadDir = "./uploads" // 文件存储目录 maxUploadSize = 10 << 20 // 10MB
阅读全文
posted @ 2025-04-06 09:34 卓能文
阅读(42)
评论(0)
推荐(0)
2025年3月31日
python: Inline script metadata
摘要: python脚本自动运行: #!/usr/bin/env -S uv run --script #!/usr/bin/env python # /// script # requires-python = ">=3.11" # dependencies = [ # "requests<3", # "
阅读全文
posted @ 2025-03-31 10:16 卓能文
阅读(62)
评论(0)
推荐(0)
2025年3月24日
用js rxjs取东财数据
摘要: import axios from "axios"; import { interval } from "rxjs"; import { catchError, switchMap } from "rxjs"; // 定义请求函数 const fetchStockData = async () =>
阅读全文
posted @ 2025-03-24 20:52 卓能文
阅读(1330)
评论(0)
推荐(0)
rxjs试用
摘要: rxjs <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Pagi
阅读全文
posted @ 2025-03-24 10:46 卓能文
阅读(34)
评论(0)
推荐(0)
2025年3月23日
go unipdf
摘要: unipdf internal/license/license.go: package license import ( "fmt" "time" "github.com/unidoc/unipdf/v3/common" ) func (licenseKey *LicenseKey) ToStrin
阅读全文
posted @ 2025-03-23 13:21 卓能文
阅读(82)
评论(0)
推荐(0)
go unioffice
摘要: unioffice inernal/license/license.go: package license import ( "bytes" "crypto/rand" "crypto/rsa" "encoding/binary" "encoding/hex" "fmt" "time" "githu
阅读全文
posted @ 2025-03-23 09:42 卓能文
阅读(129)
评论(2)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
25
下一页
公告