上一页 1 2 3 4 5 6 ··· 19 下一页
摘要: 1、小程序后台(开发管理->接口设置)开通:wx.chooseLocation、wx.getLocation 2、代码实现: app.json添加以下代码 "requiredPrivateInfos": [ "chooseLocation", "getLocation" ] .wxml添加一个按钮 阅读全文
posted @ 2025-11-27 16:29 ziff123 阅读(9) 评论(0) 推荐(0)
摘要: 1、小程序后台(开发管理->接口设置)开通:wx.chooseLocation、wx.getLocation,一开始没开通获取不到 2、代码实现 onGetWifi() { // 1. 初始化Wi-Fi模块 console.log("获取wifi信息") wx.startWifi({ success 阅读全文
posted @ 2025-11-27 16:07 ziff123 阅读(8) 评论(0) 推荐(0)
摘要: 1、安装node-wav-player npm install node-wav-player 2、代码实现,注意文件路径要正确,可以使用绝对路径 const wavPlayer = require('node-wav-player'); /** * 顺序播放多个WAV音频文件 * @param { 阅读全文
posted @ 2025-11-26 10:17 ziff123 阅读(5) 评论(0) 推荐(0)
摘要: 1、各个wav文件格式需一致。包括:格式format,通道数:numChannels,采样率:sampleRate,位深度:bitDepth 2、本代码,拼接的时候正确解析音频data块,确保每个音频数据块都按正确的字节对齐,避免拼接后各段音频后有一个杂音。 3、代码实现 const fs = re 阅读全文
posted @ 2025-11-26 10:05 ziff123 阅读(8) 评论(0) 推荐(0)
摘要: 1、nuget安装NAudio 2、代码实现 using NAudio.Wave; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading 阅读全文
posted @ 2025-11-12 11:00 ziff123 阅读(5) 评论(0) 推荐(0)
摘要: 1、nuget安装NAudio 2、代码实现 using NAudio.Wave; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace SoundWin.Commo 阅读全文
posted @ 2025-11-12 10:58 ziff123 阅读(6) 评论(0) 推荐(0)
摘要: 1、设置AppSecret,将AppID、AppSecret配置到代码验证用 2、配置服务器域名 3、设置业务域名、需要在站点底下文件验证 阅读全文
posted @ 2025-11-04 15:51 ziff123 阅读(8) 评论(0) 推荐(0)
摘要: 1.slide-verify.vue 代码: <template> <div class="slide-verify" :style="{ width: w + 'px' }" id="slideVerify" onselectstart="return false;" > <!-- 图片加载遮蔽罩 阅读全文
posted @ 2025-08-11 15:45 ziff123 阅读(293) 评论(0) 推荐(0)
摘要: 一、解题思路: 1、寻找linux模拟键盘发送F11命令 2、node js执行命令 二、方案: 1、安装xdotool xdotool 是一个强大的 Linux 命令行工具,可以模拟键盘和鼠标输入。 sudo apt install xdotool # Debian/Ubuntu 2、发送F11的 阅读全文
posted @ 2025-08-05 11:41 ziff123 阅读(40) 评论(0) 推荐(0)
摘要: 1、get方式请求,后台有参数名,ur后面不带/ 正确的方式: api/Get?uid=625462198177861 错误的方式: api/Get/?uid=625462198177861 2、如果后面只跟 个id,则可以/后面加id 正确的方式: api/Get/625462198177861 阅读全文
posted @ 2025-06-08 18:36 ziff123 阅读(47) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 19 下一页