摘要: 安装一下 ts-md5 npm install ts-md5 引入 import { Md5 } from 'ts-md5' 使用 let result = Md5.hashStr('加密文本') 去看看教程 阅读全文
posted @ 2022-11-29 11:07 .jx 阅读(679) 评论(0) 推荐(1)
摘要: navigator.clipboard.writeText('文本文本').catch(e=>console.error(e)) 阅读全文
posted @ 2022-11-29 10:58 .jx 阅读(207) 评论(0) 推荐(0)
摘要: <div><span class="demo">服务热线</span></div> <div><span class="demo">邮箱</span></div> <div><span class="demo">地址</span></div> .demo { width: 100px; displa 阅读全文
posted @ 2022-08-12 12:16 .jx 阅读(231) 评论(0) 推荐(0)
摘要: 安装个MQTTnet 3.1.1,然后开干 不废话了,直接贴代码 public class Program { public static IMqttServer mqttServer; static void Main(string[] args) { StartServer(); while ( 阅读全文
posted @ 2022-07-27 16:47 .jx 阅读(804) 评论(0) 推荐(0)
摘要: 1、创建一个控制台程序 略 2、nuget 安装如下包 3、代码 var config = new ConfigurationBuilder() .AddInMemoryCollection() //缓存 .SetBasePath(Directory.GetCurrentDirectory()) . 阅读全文
posted @ 2022-07-27 16:32 .jx 阅读(720) 评论(0) 推荐(0)
摘要: 执行的方法都在DBContext里 比如写一个方法 ,继承 DBContext public class LogDBContext : DbContext { public DbSet<LogModel> LogModels { get; set; } } 然后下面是使用方法 public asyn 阅读全文
posted @ 2022-07-25 19:12 .jx 阅读(760) 评论(0) 推荐(1)
摘要: 先在配置文件 appsetting.json 添加一个Key,随便什么都行,自己定 "CorsUrls": "http://localhost:8080" 然后在 Program.cs 里,以前是Startup.cs注入服务 string CorsUrls = configuration["Cors 阅读全文
posted @ 2022-06-02 17:52 .jx 阅读(608) 评论(0) 推荐(0)
摘要: 1、先修单用户模式 ALTER DATABASE [数据库名称] SET SINGLE_USER WITH ROLLBACK IMMEDIATE 2、修改字符集 collation ALTER DATABASE [数据库名称] COLLATE Chinese_PRC_CS_AI_WS 3、再把单用户 阅读全文
posted @ 2022-05-23 19:01 .jx 阅读(1558) 评论(0) 推荐(0)
摘要: 1.拉取MSSQL最新版本 docker pull mcr.microsoft.com/mssql/server:2019-latest 2.拉取完之后就可以运行了 docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=你的数据库密码" --name 阅读全文
posted @ 2022-04-24 01:02 .jx 阅读(1353) 评论(0) 推荐(0)
摘要: 找不到名称“__dirname” npm install --save-dev @types/node 阅读全文
posted @ 2022-04-11 17:19 .jx 阅读(46) 评论(0) 推荐(0)