摘要: 安装依赖:ohpm install @ohos/axios 阅读全文
posted @ 2023-12-31 17:25 W-it-H-ou-T 阅读(7) 评论(0) 推荐(0) 编辑
摘要: function str (len = 16) { const str = 'qwertyuioplkjhgfdsazxcvbnm1092837465POLKMNIJUHBYGVTFCRDXZSEWQA'; let sum = ''; for (let i = 0; i< len; i++) { s 阅读全文
posted @ 2023-03-19 21:03 W-it-H-ou-T 阅读(161) 评论(0) 推荐(0) 编辑
摘要: const bodyJsonSchema = { type: 'object', required: ['requiredKey'], properties: { someKey: { type: 'string' }, someOtherKey: { type: 'number' }, requi 阅读全文
posted @ 2023-03-16 20:02 W-it-H-ou-T 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 问题: 在使用nginx docker 时的挂载卷 为 -v /root/ssl/letsencrypt/live/xxxxxxx:/etc/nginx/cert 然后再nginx 的default.conf 中的证书位置为/etc/nginx/cert/fullchain.pem 就会提示找不到证 阅读全文
posted @ 2023-03-16 11:38 W-it-H-ou-T 阅读(3028) 评论(0) 推荐(0) 编辑
摘要: navigator.sendBeacon 阅读全文
posted @ 2022-11-02 19:33 W-it-H-ou-T 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 压缩图片 ffmpeg -i /Users/user/unZipPic.jpg -q 5 ./zipPic.jpg 视频转gif (-r 压缩比例,-s 分辨率) ffmpeg -i /User/user/video.mp4 -r 3 -s 1920*1080 video.gif 阅读全文
posted @ 2022-10-11 00:53 W-it-H-ou-T 阅读(28) 评论(0) 推荐(0) 编辑
摘要: console.log(JSON.stringify(new Error('错误信息'), ['name', 'message', 'stack'])) 阅读全文
posted @ 2022-09-06 20:17 W-it-H-ou-T 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 在终端输入defaults write com.apple.appstored LastUpdateNotification -date "2029-12-12 12:00:00 +0000" 阅读全文
posted @ 2022-08-30 14:44 W-it-H-ou-T 阅读(117) 评论(0) 推荐(0) 编辑
摘要: var Crypto = {}; Crypto.sha1_hmac = function (msg, key) { "use strict"; var oKeyPad, iKeyPad, iPadRes, bytes, i, len; if (key.length > 64) { // keys l 阅读全文
posted @ 2022-07-27 21:18 W-it-H-ou-T 阅读(216) 评论(0) 推荐(0) 编辑
摘要: function copy(text) { let textarea = document.createElement('textarea'); textarea.value = text; document.body.appendChild(textarea) textarea.select(); 阅读全文
posted @ 2022-04-20 11:19 W-it-H-ou-T 阅读(95) 评论(0) 推荐(0) 编辑