![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
木贝西
我主阿木
展开
-
uniapp app h5 小程序腾讯直传cos
/** * 获取视频 * @param {number} count 最多可以选择的文件个数 * @param {Array<String>} sourceType album 从相册选视频,camera 使用相机拍摄 * @param {Array<String>} sizeType 可以指定是原图还是压缩图,默认二者都有 * @returns {Promise<unknown>} */export const chooseVideoByPromise =原创 2022-05-31 16:52:47 · 1166 阅读 · 0 评论 -
shelljs
// 局部模式const shell = require('shelljs')const fs = require('fs')const files = fs.readdirSync('../packages/components').filter(name => !["theme-default", "index.ts", "types.ts","package.json","version.ts","Base"].includes(name))// 解压的webhook// const原创 2022-03-08 16:48:43 · 1412 阅读 · 0 评论 -
前端宏任务和微任务的理解
JavaScript中分为同步任务和异步任务,而异步任务中又分为宏任务和微任务两种;代码示例:function app() { setTimeout(() => { console.log("1-1"); Promise.resolve().then(() => { console.log("2-1"); }); }); console.log("1-2"); Promise转载 2022-04-07 16:29:14 · 1798 阅读 · 0 评论