摘要: 前言 ElasticSearch(以后简称ES)是一个稳定可靠快速的分布式文档存储(内存+本地持久化)和搜索引擎 本文使用.NetCore3.1调用ES作为示例。ES的.NET SDK采用NEST 注意:ES版本与NEST版本需要匹配,否则会造成”Invalid NEST response buil 阅读全文
posted @ 2022-02-18 16:02 卓扬 阅读(1165) 评论(0) 推荐(1) 编辑
摘要: 一.electron框架一般很难下载,使用淘宝镜像 npm install -g cnpm --registry=https://registry.npm.taobao.org 二.示例工程目录 index.html <!DOCTYPE html> <html> <head> <meta chars 阅读全文
posted @ 2022-02-14 16:40 卓扬 阅读(29) 评论(0) 推荐(0) 编辑
摘要: import React, { useState } from 'react'; const Child = (props) => { console.log(props, 'child-props'); return <input type="number" />; }; const Parent 阅读全文
posted @ 2021-10-28 15:12 卓扬 阅读(57) 评论(0) 推荐(0) 编辑
摘要: import React, { useState, useEffect } from 'react'; const Form = ({ val, callback }) => { const [v, setV] = useState(val); useEffect(() => { console.l 阅读全文
posted @ 2021-10-27 15:41 卓扬 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 镜像 docker pull mysql 拉取仓库 mysql 镜像 docker build -itd dms:v1 . -i 选项指示 docker 要在容器上打开一个标准的输入接口(交互式操作),-t 指示 docker 要创建一个伪 tty 终端,连接容器的标准输入接口,之后用户就可以通过终 阅读全文
posted @ 2021-04-23 17:35 卓扬 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 一,生成各平台密钥 桌面右键git bash here,进入git的ssh目录cd ~/.ssh。 生成gitee的ssh对id_rsa_gitee ssh-keygen -t rsa -C "xxxxx@163.com" 过程中会要求输入密码,默认回车就行,如果此处输入密码,则以后每次pull/p 阅读全文
posted @ 2021-03-12 18:21 卓扬 阅读(721) 评论(0) 推荐(0) 编辑
摘要: 有时git clone下来的项目会出现vscode自动保存和eslint格式冲突的情况,烦躁得很,此处列出配置统一风格。 1.安装VsCode代码插件 Vetur Eslint Prettier - Code formatter 2.配置VsCode 设置-打开设置(json) { // 控制工作台 阅读全文
posted @ 2021-01-12 16:05 卓扬 阅读(1373) 评论(0) 推荐(0) 编辑
摘要: 1 class ClassType{ 2 public int num{get;set;} 3 } 4 5 struct StructType{ 6 public int num{get;set;} 7 } 8 9 static void Main(string[] args) 10 { 11 St 阅读全文
posted @ 2020-10-10 15:14 卓扬 阅读(614) 评论(0) 推荐(0) 编辑
摘要: 1.在JS里,万物皆对象。方法(Function)是对象,方法的原型(Function.prototype)是对象。因此,它们都会具有对象共有的特点。即:对象具有属性proto,可称为隐式原型,一个对象的隐式原型指向构造该对象的构造函数的原型,这也保证了实例能够访问在构造函数原型中定义的属性和方法。 阅读全文
posted @ 2020-07-08 11:50 卓扬 阅读(986) 评论(0) 推荐(0) 编辑
摘要: 1 package main 2 3 import "fmt" 4 5 func sort(array []int) { 6 length := len(array) 7 for i := 0; i < length-1; i++ { 8 for j := i + 1; j < length; j+ 阅读全文
posted @ 2020-06-12 14:58 卓扬 阅读(178) 评论(0) 推荐(0) 编辑