12 2023 档案
摘要:1.安装依赖包 npm install sharp canvas 2.实例代码 const {createCanvas} = require('canvas'); // 在虚拟DOM环境中创建Canvas const canvas = createCanvas(300, 200); const co
阅读全文
摘要:# 删除几天前的文件 days=5 find /path/to/logs -type f -name "log*" ! -newermt $(date -d "$days days ago" +%Y%m%d) -exec rm {} \; # 删除指定日期前的文件 date_str="2023-01
阅读全文
摘要:1.1 创建库项目 cargo new --lib plugin cd plugin 1.2 编写加法功能函数 vim src/lib.rs #[no_mangle] pub extern fn add(left: usize, right: usize) -> usize { left + rig
阅读全文