会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
福超
博客园
首页
新随笔
联系
订阅
管理
2025年7月1日
electron中操作ftp服务的同名jpg和svg图片合并并且删除svg图片
摘要: 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)
2025年6月18日
electron访问ftp服务的图片
摘要: 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)
2025年4月24日
Electron 使用nodeS7 与PLC交互
摘要: 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)
electron 实现剪切板功能
摘要: 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)
electron + vue3 备份数据库压缩传输到ftp服务器
摘要: 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)
2024年12月6日
H5百度地图选择
摘要: 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)
2024年9月14日
快速生码写入txt
摘要: 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)
CSS文字擦除效果
摘要: <!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)
2024年3月21日
vue2 txt日志打印以及读取txt文本数据
摘要: 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)
vue2扫码枪串口模式的使用
摘要: 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)
下一页
公告