摘要: github地址: https://github.com/Schniz/fnm 1. 系统属性新建FNM_DIR变量值C:\Program Files\fnm-windows (替换为自己的Fnm安装路径) 2. 系统属性找到path新建 %FNM_DIR% 3. 新建start.cmd @echo 阅读全文
posted @ 2025-03-04 11:03 coffeemil 阅读(353) 评论(0) 推荐(0)
摘要: 分析过后这个问题是证书过期的意思 考虑到其他的原因这里给出三个解决方案 一:清除npm缓存npm cache clean --force取消ssl验证:npm config set strict-ssl false之后再npm install 二:npm config set registry ht 阅读全文
posted @ 2024-03-13 10:22 coffeemil 阅读(294) 评论(0) 推荐(0)
摘要: props默认值 const props = withDefaults( defineProps<{ 属性1:booelan 属性2: string }>(), { 属性1:false, 属性2: '' } ) 阅读全文
posted @ 2024-02-20 11:22 coffeemil 阅读(18) 评论(0) 推荐(0)
摘要: 要让浏览器缓存视频,您需要使用Nginx配置HTTP响应标头,告诉浏览器何时可以缓存视频以及缓存多长时间。以下是一个示例配置文件: server { listen 80; server_name example.com; root /var/www/html; location /videos/ { 阅读全文
posted @ 2023-03-23 13:27 coffeemil 阅读(840) 评论(0) 推荐(0)
摘要: background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 46%, rgba(255, 255, 255, 0) 100%); 阅读全文
posted @ 2023-02-13 10:41 coffeemil 阅读(19) 评论(0) 推荐(0)
摘要: 借助API compositionstart文本合成系统如 input method editor(即输入法编辑器)开始新的输入合成时会触发 compositionstart 事件。compositionend当文本段落的组成完成或取消时,compositionend 事件将被触发(具有特殊字符的触 阅读全文
posted @ 2022-10-18 11:15 coffeemil 阅读(302) 评论(0) 推荐(0)
摘要: const number= 电话号码 window.location.href='tel://'+number 接下来就会看到 阅读全文
posted @ 2022-09-28 16:20 coffeemil 阅读(25) 评论(0) 推荐(0)
摘要: function a(a, b) { this.aa = 1; console.log(this, a, b); } function b(a, b) { this.bb = 2; console.log(this, a, b); } function c(a, b) { this.cc = 2; 阅读全文
posted @ 2022-08-16 23:17 coffeemil 阅读(35) 评论(1) 推荐(0)
摘要: function *syncMethod() { yield 111; yield 222; yield 3333; return 4444; } let generator = syncMethod(); console.log(generator.next()); // {value: 1, d 阅读全文
posted @ 2022-08-15 14:31 coffeemil 阅读(26) 评论(0) 推荐(0)
摘要: yarn和npm一样,默认安装的全局包和缓存都在C盘里:npm的cache默认在:C:\Users\用户\AppData\Roaming\npmyarn的cache默认在:C:\Users\用户\AppData\Local\Yarn yarn config set global-folder "新缓 阅读全文
posted @ 2022-07-30 23:24 coffeemil 阅读(970) 评论(0) 推荐(0)