1. async 和 await 在干什么 任意一个名称都是有意义的,先从字面意思来理解。async 是“异步”的简写,而 await 可以认为是 async wait 的简写。所以应该很好理解 async 用于申明一个 function 是异步的,而 await 用于等待一个异步方法执行完成。 另 Read More
posted @ 2023-10-31 14:42 Code_Dog Views(16) Comments(0) Diggs(0) Edit
解决Tortoise git没有红色、绿色勾勾的问题 网上搜了好多,感觉这个挺好用的(亲测有效) 直接给步骤吧:1.电脑win+r, 输入regedit.exe 打开注册表 按照文件的层次关系依次找到(双击) “HKEY_LOCAL_MACHINE–>SOFTWARE–>Microsoft–>Windows–>CurrentVersion–>Explo Read More
posted @ 2022-04-21 11:17 Code_Dog Views(1704) Comments(0) Diggs(0) Edit
在package.json的scripts对应的node如下打包命令 --sourceMap=true --optimization=false 即可调试前端代码,原理是会修改angular.json里面对应打包节点 Read More
posted @ 2022-03-16 08:45 Code_Dog Views(111) Comments(0) Diggs(0) Edit
USE [master]GOALTER DATABASE 数据库 SET RECOVERY SIMPLE WITH NO_WAITGOALTER DATABASE 数据库 SET RECOVERY SIMPLE 简单模式GOUSE 数据库 GODBCC SHRINKFILE (N'数据库 _Log' Read More
posted @ 2022-01-24 14:35 Code_Dog Views(83) Comments(0) Diggs(0) Edit
我有一种发送电子邮件的方法,它使用SmtpClient. 在此方法中,我有以下内容await smtpClient.SendMailAsync (mail);。调用是从我的控制器发出的,具体取决于具体情况 解决办法: var originalSynchronizationContext = Sync Read More
posted @ 2021-11-30 10:10 Code_Dog Views(92) Comments(0) Diggs(0) Edit
先执行: npm --add-python-to-path='true' --debug install --global windows-build-tools再执行:npm install --global node-gyp Read More
posted @ 2021-11-10 14:03 Code_Dog Views(1023) Comments(0) Diggs(0) Edit
1.var声明的变量会挂载在window上,而let和const声明的变量不会 2.var声明变量存在变量提升,let和const不存在变量提升 3.let和const声明形成块作用域 4.同一作用域下let和const不能声明同名变量,而var可以 5.const一旦声明必须赋值,不能使用null Read More
posted @ 2021-05-12 15:43 Code_Dog Views(162) Comments(0) Diggs(0) Edit
每个项目下面有一个隐藏文件夹,.vs文件夹 。里面有一个文件 applicationhost.config <binding protocol="http" bindingInformation="*:55732:localhost" />在这个节点下面复制一个,把localhost 改成你本地的i Read More
posted @ 2021-04-13 15:57 Code_Dog Views(1407) Comments(0) Diggs(0) Edit
import java.util.Arrays; import java.util.EmptyStackException; import java.util.Stack; public class MyStack { private Object[] myStack = new Object[10 Read More
posted @ 2021-04-12 10:04 Code_Dog Views(173) Comments(0) Diggs(0) Edit
一.先来说说Java的基本数据类型和引用类型 八大基本数据类型:Byte,short,int,long,double,folat,boolean,char,其中占一个字节的是byte,short和char占两个字节,int,float占四个字节,double和long占8个字节,boolean只有t Read More
posted @ 2021-04-08 13:45 Code_Dog Views(362) Comments(0) Diggs(0) Edit