摘要: class BufferWritable extends Writable { constructor() { super({ objectMode: false }) this.data = Buffer.alloc(0) } _write(chunk, encoding, callback) { 阅读全文
posted @ 2025-07-01 09:12 福超 阅读(6) 评论(0) 推荐(0)
摘要: 1. 用FileZilla Server Interface搭建一个ftp服务2.如果是IE浏览器 可以直接访问 <img alt="111"src="ftp://dzjg:dzjg@192.168.0.221:14147/1.jpg"/> 3.在electron 中是谷歌浏览器内核就得先下载下图片 阅读全文
posted @ 2025-06-18 10:25 福超 阅读(7) 评论(0) 推荐(0)
摘要: 1.下载依赖 npm i nodes7 var nodes7 = require('nodes7'); 2.使用,去掉业务代码即可 saveWarn(){ this.$refs.warnFormRef.validate((valid) => { if (valid) { // if(!this.is 阅读全文
posted @ 2025-04-24 17:33 福超 阅读(80) 评论(0) 推荐(0)
摘要: 1.在main.ts import { app, BrowserWindow, shell, ipcMain ,dialog,clipboard,Menu} from 'electron' var isInput = false // 设置自定义上下文菜单 win.webContents.on('c 阅读全文
posted @ 2025-04-24 17:27 福超 阅读(31) 评论(0) 推荐(0)
摘要: 1. 写bat文件 echo Dumping database 2024_suntory ... set PATH=%PATH%;C:\Program Files\MySQL\MySQL Server 5.7\bin set PATH=%PATH%;C:\Program Files\WinRAR " 阅读全文
posted @ 2025-04-24 17:19 福超 阅读(35) 评论(0) 推荐(0)
摘要: 1.引入 <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=DFCUDRBUeWLN0HKZFJEHocIkPrNVTZZvxDH"></script> 2.新建组件 3. <template> <v 阅读全文
posted @ 2024-12-06 16:39 福超 阅读(59) 评论(0) 推荐(0)
摘要: printCodes(mode,len){ // 1: "上单码模式", // 2: "下单码模式", // 3: "双码模式", // 4: "上2下1码模式", // 5: "上1下2码模式", // 6: "四码模式", let code = '' let start = Date.now() 阅读全文
posted @ 2024-09-14 10:06 福超 阅读(12) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2024-09-14 10:01 福超 阅读(22) 评论(0) 推荐(0)
摘要: 1.创建log.js在根目录下 let fs = require('fs') import { parseTime } from "./src/renderer/utils/index" import { MessageBox } from 'element-ui' function writeLo 阅读全文
posted @ 2024-03-21 11:45 福超 阅读(305) 评论(0) 推荐(0)
摘要: 1.下载依赖包 serialport npm i serialport 2.创建文件code-gun.js var { SerialPort } = require("serialport"); // 串口列表 SerialPort.list() .then((ports) => { ports.f 阅读全文
posted @ 2024-03-21 11:34 福超 阅读(884) 评论(0) 推荐(0)