234234234
1 2 3 4 5 ··· 17 下一页
摘要: import { PDFDocument, rgb } from "pdf-lib"; import fs from 'fs'; import path from 'path'; async function imagesToPdf(inputPaths, outputPath, options = 阅读全文
posted @ 2025-05-17 10:42 ukeepgoing 阅读(54) 评论(0) 推荐(0)
摘要: 这个插槽太奇怪了,非得加上对于的属性才能使用。 <u-input class="u-input" prefixIcon="search" suffix-icon="search" placeholder="请输入验证码" type="text" border="surround" color="#f 阅读全文
posted @ 2025-02-07 22:29 ukeepgoing 阅读(146) 评论(0) 推荐(0)
摘要: 思路:n为数组的长度(利用线性代数的思路) 1.左移:把第1到第p个看成集合A,把第p+1到第n个看成集合B,则需要推导AB->BA, 过程(A-1)*(B-1)-> ( (A-1)*(B-1))-1 = BA 2.右移:把第1到第n-p个看成集合A,把第n-p+1到第n个看成集合B,则需要推导AB 阅读全文
posted @ 2024-05-10 16:45 ukeepgoing 阅读(210) 评论(0) 推荐(0)
摘要: #include <stdio.h> int main() { // 有序列表的去重 int arr[] = {1,2,2,3,3,3,5,6,7,7,7,7,8,8,9,9,9}; int len = sizeof(arr)/4; int mark[len] = {0,0,0,0,0,0,0,0, 阅读全文
posted @ 2024-05-10 14:40 ukeepgoing 阅读(22) 评论(0) 推荐(0)
摘要: location.search .replace('?', '') .split('&') .reduce((ret, item) => { const [key, value] = `${item}`.split('='); ret[key] = value; return ret; }, {}) 阅读全文
posted @ 2024-04-26 13:14 ukeepgoing 阅读(28) 评论(0) 推荐(0)
摘要: import * as fs from 'fs'; // 读取HTML文件 const t1 = fs.readFileSync('./txt1.txt').toString(); const t2 = fs.readFileSync('./txt2.txt').toString() // cons 阅读全文
posted @ 2024-04-15 11:08 ukeepgoing 阅读(20) 评论(0) 推荐(0)
摘要: 效果: const drawFlag = () => { const viewBox = 1024; const poleHeight = 1000; const poleWidth = 60; const poleX = 10; const poleY = 10; const x = poleX 阅读全文
posted @ 2023-12-18 11:47 ukeepgoing 阅读(57) 评论(0) 推荐(0)
摘要: 、、 <template> <div> <div> <input type="text" @keyup.enter="mark"> </div> <div ref="text" style="height: 200px; overflow: auto" v-html="html"> </div> < 阅读全文
posted @ 2023-08-11 17:24 ukeepgoing 阅读(135) 评论(0) 推荐(0)
摘要: #如果文件夹不存在,创建文件夹 if [ ! -d "/www/backup/data" ]; then mkdir /www/backup/ant-data fi # 切换目录 cd /usr/ # 开始打包备份 tar -zcvf /www/backup/data/data-$(date +%Y 阅读全文
posted @ 2023-07-24 16:13 ukeepgoing 阅读(282) 评论(0) 推荐(0)
摘要: <template> <div @mousemove="onHandleMousemove" @mouseup="onHandleMouseend" @mouseleave="onHandleMouseend" class="block" ></div> </template> <script se 阅读全文
posted @ 2023-07-05 16:55 ukeepgoing 阅读(130) 评论(0) 推荐(0)
1 2 3 4 5 ··· 17 下一页
23423423423