摘要: 1 项目结构 2 myc01.component.ts 1 import { Component, OnInit } from '@angular/core'; 2 3 @Component({ 4 selector: 'app-myc01', 5 templateUrl: './myc01.com 阅读全文
posted @ 2022-05-14 16:40 孝文 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 1 <section class="content"> 2 <div class="row"> 3 <div class="col-md-12"> 4 <div class="box"> 5 <div class="box-header"> 6 <div class="form-group"> 7 阅读全文
posted @ 2021-10-07 17:51 孝文 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 一,Redis哨兵模式配置 1,下载Redis,然后解压复制5个文件夹分别如下命名。 2,哨兵模式配置 (1)修改主节点Redis-6379中redis.windows.conf配置文件如下 (2)修改从节点Redis-6380中redis.windows.conf配置文件如下 (3)配置哨兵,在哨 阅读全文
posted @ 2021-06-11 15:03 孝文 阅读(1467) 评论(0) 推荐(0) 编辑
摘要: 本文讨论的是在都需要使用Log4Net的前提下,因为.NET Core已经内置了日志服务,不使用Log4Net也是可以看到日志的. 一、区别 相同: 1,都需要引用log4net.dll。 不同: 1,需要格式化日志输出方式的,它们中的Log4Net.config配置文件格式是不同的。 2,.NET 阅读全文
posted @ 2021-04-16 11:00 孝文 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 1,查询指定父类下所有的子 1 with temp as 2 ( 3 select * from bot_EquityFundamentals where Id=7 --父类Id 4 union all 5 select b.*from bot_EquityFundamentals b 6 inne 阅读全文
posted @ 2020-12-17 14:09 孝文 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1,前台JavaScript 1 function uploadImg() { 2 var formDate = new FormData(); 3 var files = $("#image").get(0).files; 4 //拼接请求参数 5 formDate.append("image", 阅读全文
posted @ 2020-08-25 14:39 孝文 阅读(514) 评论(0) 推荐(0) 编辑
摘要: 1,安装AutoMapper 和 Autofac 命令: Install-package AutoMapper Install-package Autofac 1 using Autofac; 2 using AutoMapper; 3 using AutoMapper.Configuration; 阅读全文
posted @ 2020-08-13 15:08 孝文 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 1 public class VerificationCodeHelper 2 { 3 /// <summary> 4 /// 生成随机的字符串 5 /// </summary> 6 /// <param name="codeCount"></param> 7 /// <returns></retu 阅读全文
posted @ 2020-07-23 18:18 孝文 阅读(269) 评论(0) 推荐(1) 编辑
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <script> 7 function setCookie(name,value,iDay) 8 { 9 var oDate=new Da 阅读全文
posted @ 2020-05-04 16:04 孝文 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 200px; height: 200px;background: red;position: 阅读全文
posted @ 2020-05-04 15:55 孝文 阅读(105) 评论(0) 推荐(0) 编辑