摘要: //data为json串 for (var key in data) { console.log(key); console.log(data[key]); } 阅读全文
posted @ 2023-05-23 17:35 HoFei1113 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 开启WebSocket服务 1.导航到“控制面板” > “程序” > “程序和功能” > “启用或禁用 Windows 功能”(位于屏幕左侧) 。 2.打开以下节点:“Internet Information Services” > “万维网服务” > “应用程序开发功能” 。 3.选择“WebSo 阅读全文
posted @ 2023-05-23 17:29 HoFei1113 阅读(433) 评论(0) 推荐(0) 编辑
摘要: byte[] pB = null; if (!string.IsNullOrEmpty(pathword))//pathword文件路径 { FileStream p = null; try { p = new FileStream(pathword, FileMode.Open, FileAcce 阅读全文
posted @ 2023-05-23 17:15 HoFei1113 阅读(38) 评论(0) 推荐(0) 编辑
摘要: IF NOT EXISTS (SELECT * FROM syscolumns WHERE id=object_id('表名') AND name='字段名') ALTER TABLE 表名 ADD 字段名 字段类型 是否可空 default 0 GO--首先验证表中是否存在该字段,不存在时执行添加 阅读全文
posted @ 2023-05-23 14:55 HoFei1113 阅读(74) 评论(0) 推荐(0) 编辑
摘要: if not exists (select 1 from syscolumns where name='字段名' and id=OBJECT_ID('表名') and 条件) begin alter table 表名 alter column 字段名 类型 end Go 阅读全文
posted @ 2023-05-23 14:52 HoFei1113 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 需要安装NuGet程序包 Spire.Doc DocX 注:DocX包去除警告提示用 Spire.Doc.Document document = new Spire.Doc.Document();//主文档实例 document.LoadFromFile(path, FileFormat.Docx) 阅读全文
posted @ 2023-05-23 14:41 HoFei1113 阅读(184) 评论(0) 推荐(0) 编辑