上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: 文档:内置指令 | Vue.js (vuejs.org) 1.v-on,给元素绑定事件监听器 <!-- 方法处理函数 --> <button v-on:click="doThis"></button> <!-- 缩写 --> <button @click="doThis"></button> <!- 阅读全文
posted @ 2024-06-23 09:28 野码 阅读(55) 评论(0) 推荐(0)
摘要: 1.下载VsCode并安装 Download Visual Studio Code - Mac, Linux, Windows 2.下载Node.js并安装 Node.js — 下载 Node.js® (nodejs.org) cmd -->输入 npm -v 和 node -v,有版本返回说明正常 阅读全文
posted @ 2024-06-22 10:48 野码 阅读(238) 评论(0) 推荐(0)
摘要: 官网:Git for Windows 点击下载安装。 右击鼠标会出现GUI和Bash 选择git bash here 配置全局用户名和邮箱(gitee) git config --global user.name "你的名字" git config --global user.email 你的邮箱 阅读全文
posted @ 2024-06-22 09:31 野码 阅读(154) 评论(0) 推荐(0)
摘要: #region 登录信息/// <summary> /// 密码 /// </summary> private string _Pwd; /// <summary> /// 密码 /// </summary> public string Pwd { get { return _Pwd; } set 阅读全文
posted @ 2024-05-18 12:46 野码 阅读(350) 评论(0) 推荐(0)
摘要: Quartz.NET 是一个用于调度任务和作业的开源框架,它允许开发人员创建简单或复杂的调度方案,例如定时执行任务,定时触发作业等。 创建调度器很简单需要三个对象: IScheduler、IJob、ITrigger,直接上代码,使用可根据需求再扩展 using Quartz; using Quart 阅读全文
posted @ 2024-05-09 14:07 野码 阅读(247) 评论(0) 推荐(0)
摘要: 花了6个小时写的Modbus通信案例,通信方式包括RTU,ASCII,TCP,UTP。 案例图: using Modbus.Data; using Modbus.Device; using System; using System.Collections.Generic; using System. 阅读全文
posted @ 2024-05-07 16:48 野码 阅读(115) 评论(0) 推荐(0)
摘要: Modbus协议类型 Modbus从站四张表类型 主站常用功能码 Modbus TCP请求报文,功能码03 Modbus TCP应答报文,功能码03 00 17为23个字节:请求长度加应答长度06+17=23; 14为20长度:14+06=20 Modbus UDP请求报文,功能码03 Modbus 阅读全文
posted @ 2024-05-06 19:33 野码 阅读(2487) 评论(0) 推荐(0)
摘要: 文档:SerialPort 类 (System.IO.Ports) | Microsoft Learn 页面展示: 代码: using System; using System.Collections.Generic; using System.ComponentModel; using Syste 阅读全文
posted @ 2024-05-06 17:05 野码 阅读(104) 评论(0) 推荐(0)
摘要: 1. 父传值子,数据绑定: properties Component({ properties: { propA: { type: String, // 传递的数据类型 value: '' // 默认值 }, propB: Number // 简化的定义方式 } }) <!-- 引用组件的页面模板 阅读全文
posted @ 2024-04-24 12:59 野码 阅读(345) 评论(0) 推荐(0)
摘要: 消息提示框封装: //消息提示框封装 /** // 提示的内容 title: '消息提示框', // 提示的内容 icon: 'success', // 提示的图标,success(成功)、error(失败)、loading(加载)、none(不显示图标) duration: 2000, // 提示 阅读全文
posted @ 2024-04-22 14:05 野码 阅读(790) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页