原创 8 父子傳參-父向子傳遞

1 代碼結構    2 myc03.component.html <p>myc03 works!</p> <h3>name:{{name}}</h3> <h3>age:{{age}}</h3> <h3>老闆:{{boss?.na

原创 8 父子傳參-子向父傳遞

1 代碼結構    2 myc04.component.html <p>myc04 works!</p> <!--emit():觸發msgEvent中的函數,就是show()--> <button (click)="msgEvent

原创 7 掌控子元素

1 代碼結構       2 myc02.component.html <p>myc02 works!</p> <h4>{{name}}</h4> <h4>{{age}}</h4> myc02.component.html 3 m

原创 6 Angular頁面生命週期

1 代碼結構    2 app.component.ts import { Component } from '@angular/core'; @Component({ selector: 'app-root', templ

原创 NLog在.NET6中的使用

1 使用Nuget引入NLog包 NLog.Web.AspNetCore 2 Program.cs中添加引用 builder.Logging.AddNLog("CfgFile/NLog.config"); 3 代碼結構    4 NLog

原创 5 Angular-管道(自定義)

1 代碼結構    2 myc02.component.ts 1 import { Component, OnInit } from '@angular/core'; 2 3 @Component({ 4 selecto

原创 5 Angular-管道(系統定義)

1 代碼結構    2 myc01.component.html 1 <p>myc01 works!</p> 2 3 <!--pipe管道--> 4 <!--與vue不同:vue中的管道需要用戶自己定製聲明--> 5 <!

原创 4 Angular-自定義指令

1 代碼結構    2 myc04.component.html 1 <p>myc04 works!</p> 2 3 <!--自定義指令--> 4 <div> 5 <input type="text"> 6 </

原创 2 Angular-系統指令、自定義指令ngIf

1 項目結構  2 myc01.component.ts 1 import { Component, OnInit } from '@angular/core'; 2 3 @Component({ 4 selector:

原创 3 Angular-系統指令、自定義指令ngSwitch-ngSwitchCase

1 代碼結構     2 myc02.component.ts 1 import { Component, OnInit } from '@angular/core'; 2 3 @Component({ 4 select

原创 4 Angular-系統指令、自定義指令ngFor

1 代碼結構    2 myc03.component.ts 1 import { Component, OnInit } from '@angular/core'; 2 3 @Component({ 4 selecto

原创 如何在.NetCore MVC使用CloudTables控件實現分頁

    1 <section class="content"> 2 <div class="row"> 3 <div class="col-md-12"> 4 <div class

原创 Windows下Redis哨兵模式配置以及在.NetCore中使用StackExchange.Redis連接哨兵

一,Redis哨兵模式配置 1,下載Redis,然後解壓複製5個文件夾分別如下命名。      2,哨兵模式配置 (1)修改主節點Redis-6379中redis.windows.conf配置文件如下                (2)

原创 Log4Net在.NET Fromework和.NET Core中的使用

  本文討論的是在都需要使用Log4Net的前提下,因爲.NET Core已經內置了日誌服務,不使用Log4Net也是可以看到日誌的.   一、區別   相同:   1,都需要引用log4net.dll。   不同:   1,需要格式化日誌

原创 Sql 遞歸查詢

1,查詢指定父類下所有的子 1 with temp as 2 ( 3 select * from bot_EquityFundamentals where Id=7 --父類Id 4 union all 5 se