js类型转换
JavaScript 类型有两种转化方式:显式转化和隐式转化。在 JavaScript 中,类型转化只能转化为三种基本类型。to stringto numberto booleanto string有两种方式可以转化为 string 类型。toString()String()toString返回当前
JavaScript 类型有两种转化方式:显式转化和隐式转化。在 JavaScript 中,类型转化只能转化为三种基本类型。to stringto numberto booleanto string有两种方式可以转化为 string 类型。toString()String()toString返回当前
用户向浏览器请求资源问题,浏览器会检测本地是否有对应的缓存文件。如果不存在,则给服务器发送请求,服务器返回资源的同时,在 response header 中会携带缓存策略的内容,浏览器根据缓存策略缓存文件。如果缓存存在,浏览器会根据 max-age 或 expires(max-age 优先级高于 e
今天打开vs2019发现无法加载项目,报错无法打开项目文件。 由于文件不存在,项目C:\Program Files\dotnet\sdk\6.0.101\Sdks\Microsoft.NET.Sdk\Sdk\Sdk.props.网上找了下答案,说是环境变量的问题.如下:本地是由于环境变量设置问题,环
今天在用c#读取txt文件,乱码了,用默认的编码不行,得用指定的编码才可以.因为每个文件的编码可能都不一样,有没有一种一劳永逸的方法,那肯定是有~自动判断文件的编码.下面就直接上代码了.public static Encoding GetEncoding(string filename){try{r
今天在将项目升级到asp.net core6.0后发现报错A relational store has been configured without specifying either the DbConnection or connection string to use.项目使用的数据库是My
今天在ubuntu发直接运行命令dotnet /var/www/down/Down.Web.dll发现报错Value cannot be null. (Parameter 'connectionString') at Hangfire.MySql.MySqlStorage等.起初还以为是配置有问题,
安装sqlserver linux 2019报错无法打开 ‘microsoft.asc’: 没有那个文件或目录,Cannot open 'microsoft.asc': there is no such file or directory
今天在查看网站日志的,看到警报:Using an in-memory repository. Keys will not be persisted to storage.Neither user profile nor HKLM registry available. Using an epheme
今天在用Visual Studio 2022发布NET6.0或者说asp.net core发布时,在web.config包含production或者Development,VS在发布时替换asp.net core中的web.config
今天升级MySQL Workbench后打开Server Status报错:could not acquire management access for administration Runtime Error: Target host is configured as Windows, but