摘要:sql和nosql的区别 1. 结构化 非结构化 2. 关联的 非关联的 3. sql查询 非 sql 4. 存储方式 磁盘 内存 5、扩展性 垂直 水平 6. 使用场景: 数据结构固定,相关业务对数据安全性,一致性要求较高 数据结构不固定,对安全性,一致性要求不高,对性能要求较高 nosql :结
阅读全文
摘要:using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration.Json; namespace ConsoleApp1 { internal class Program { static void
阅读全文
摘要:function getAllIds(tree, result) { //遍历树 获取id数组 for (const i in tree) { result.push(tree[i].id); // 遍历项目满足条件后的操作 if (tree[i].children) { //存在子节点就递归 ge
阅读全文
摘要:1. 函数封装 const onloadend1 = (e: any, a: any) => { const { graph } = FlowGraph const reader = new FileReader(); const fileList = fileRef1.value.files //
阅读全文
摘要:1. 封装一个下载文件的函数 const downloadTxt = (fileName: any, content: any) => { let a = document.createElement('a'); a.href = 'data:text/plain;charset=utf-8,' +
阅读全文
摘要:router.push({ name:"monitor", query:{ deviceid:"1676156672197922816", // 设备 ID isOpen:"true", // 是否跳转事件 date:new Date().getTime() // 解决第二次使用 push 跳转路由
阅读全文
摘要:windows + s 搜索 service 打开服务 ; 找到下面 edge 三项 双击 把启动类型都改成 手动触发
阅读全文
摘要:请你编写一个异步函数,它接收一个正整数参数 millis ,并休眠这么多毫秒。要求此函数可以解析任何值。 ps: promise 期约函数 (异步函数)的使用 ,promise 是一个对象 new promise /** * @param {number} millis */ async funct
阅读全文
摘要:请你编写一段代码实现一个数组方法,使任何数组都可以调用 array.last() 方法,这个方法将返回数组最后一个元素。如果数组中没有元素,则返回 -1 。 ps:this 环境变量的使用 ,this.length 的返回值是数字类型 代码实现: <script> //在数组的原型写扩展方法可以给所
阅读全文
摘要:<Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:d="http://schemas.microsoft.com/expressio
阅读全文
摘要:<Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/200
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Runtime.ExceptionServices; using System.Text; u
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Runtime.ExceptionServices; using System.Text; u
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Net.Http;using System.Runtime.ExceptionServices;using System.Text;using S
阅读全文
摘要:{ "name": "项目名称", "description": "描述", "version": "版本", "private": true, "author": "test Team", "license": "MIT", } 如果你在你的 package.json 中设置了“private”:
阅读全文
摘要:1. 安装@microsoft/signalr pnpm install @microsoft/signalr --save signalr 是微软对 websocket技术的封装,优化了操作 ;1. build 和后端signalR服务建立关联2. 使用 on 方法监听后端定义的函数,ps:此函数
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading; using System.Thre
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading; using System.Thre
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading; using System.Thre
阅读全文