1 2 3 4 5 ··· 9 下一页
摘要: CommonJS 模块是为 Node.js 打包 JavaScript 代码的原始方式。Node.js 还支持浏览器和其他 JavaScript 运行时使用的 ECMAScript 模块 标准。 const circle = require('./circle.js'); circle.js exp 阅读全文
posted @ 2026-01-09 13:37 coffeemil 阅读(1) 评论(0) 推荐(0)
摘要: 1. 使用sdk自己提供的webview自带的callback 2. 监听 visibilityChange 判断 document.visibilityState 是否为 visible https://developer.mozilla.org/zh-CN/docs/Web/API/Docume 阅读全文
posted @ 2025-12-03 09:38 coffeemil 阅读(4) 评论(0) 推荐(0)
摘要: 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 阅读(503) 评论(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 阅读(340) 评论(0) 推荐(0)
摘要: props默认值 const props = withDefaults( defineProps<{ 属性1:booelan 属性2: string }>(), { 属性1:false, 属性2: '' } ) 阅读全文
posted @ 2024-02-20 11:22 coffeemil 阅读(84) 评论(0) 推荐(0)
摘要: 要让浏览器缓存视频,您需要使用Nginx配置HTTP响应标头,告诉浏览器何时可以缓存视频以及缓存多长时间。以下是一个示例配置文件: server { listen 80; server_name example.com; root /var/www/html; location /videos/ { 阅读全文
posted @ 2023-03-23 13:27 coffeemil 阅读(941) 评论(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 阅读(24) 评论(0) 推荐(0)
摘要: 借助API compositionstart文本合成系统如 input method editor(即输入法编辑器)开始新的输入合成时会触发 compositionstart 事件。compositionend当文本段落的组成完成或取消时,compositionend 事件将被触发(具有特殊字符的触 阅读全文
posted @ 2022-10-18 11:15 coffeemil 阅读(333) 评论(0) 推荐(0)
摘要: const number= 电话号码 window.location.href='tel://'+number 接下来就会看到 阅读全文
posted @ 2022-09-28 16:20 coffeemil 阅读(36) 评论(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 阅读(48) 评论(1) 推荐(0)
1 2 3 4 5 ··· 9 下一页