fi 相关的软件列表

js类型转换
JavaScript

js类型转换

2024-01-04 标签:js,类型转换,toString,转化,String,parseInt,input,false,null,true,return,string,字符串,数值,undefined,123,Number,parseFloat,Boolean,valueOf,number,boolean

JavaScript 类型有两种转化方式:显式转化和隐式转化。在 JavaScript 中,类型转化只能转化为三种基本类型。to stringto numberto booleanto string有两种方式可以转化为 string 类型。toString()String()toString返回当前

浏览器的缓存机制
JavaScript

浏览器的缓存机制

2024-01-02 标签:浏览器,缓存,机制,eTag,文件,header,请求,过期,服务器发送,max,age,expires,request,last,modified,优先级,本地,携带,一致,存在

用户向浏览器请求资源问题,浏览器会检测本地是否有对应的缓存文件。如果不存在,则给服务器发送请求,服务器返回资源的同时,在 response header 中会携带缓存策略的内容,浏览器根据缓存策略缓存文件。如果缓存存在,浏览器会根据 max-age 或 expires(max-age 优先级高于 e

VS加载项目出错:无法打开项目文件。 由于文件不存在Sdk.props
C#.net

VS加载项目出错:无法打开项目文件。 由于文件不存在Sdk.props

2022-09-14 标签:VS,加载,项目,出错,无法,打开,文件,存在,Sdk,props,dotnet,Program,Files,sdk,6.0,x86,环境变量,版本

今天打开vs2019发现无法加载项目,报错无法打开项目文件。 由于文件不存在,项目C:\Program Files\dotnet\sdk\6.0.101\Sdks\Microsoft.NET.Sdk\Sdk\Sdk.props.网上找了下答案,说是环境变量的问题.如下:本地是由于环境变量设置问题,环

C#自动获取文件编码txt自动判断文件编码
C#.net

C#自动获取文件编码txt自动判断文件编码

2022-04-28 标签:C#自动获取文件编码,自动判断文件编码,C#判断文件编码

今天在用c#读取txt文件,乱码了,用默认的编码不行,得用指定的编码才可以.因为每个文件的编码可能都不一样,有没有一种一劳永逸的方法,那肯定是有~自动判断文件的编码.下面就直接上代码了.public static Encoding GetEncoding(string filename){try{r

NET6报错A relational store has been configured without specifying either the DbConnection or connection string to use
Asp.net

NET6报错A relational store has been configured without specifying either the DbConnection or connection string to use

2022-01-28 标签:NET6,报错,A,relational,store,configured,without,specifying,either,DbConnection,connection,string,use,MysqlContext,options,ConnectionString,版本,asp.net,core6.0

今天在将项目升级到asp.net core6.0后发现报错A relational store has been configured without specifying either the DbConnection or connection string to use.项目使用的数据库是My

ubuntu asp.net core读取appSettings.json问题
Asp.net

ubuntu asp.net core读取appSettings.json问题

2022-01-28 标签:ubuntu,asp.net core,appsettings.json,问题,dotnet,appSettings,Value cannot be null,Hangfire.MySql.MySqlStorage,ubuntu appSettings

今天在ubuntu发直接运行命令dotnet /var/www/down/Down.Web.dll发现报错Value cannot be null. (Parameter 'connectionString') at Hangfire.MySql.MySqlStorage等.起初还以为是配置有问题,

C#net core报Keys will not be persisted to storage
Asp.net

C#net core报Keys will not be persisted to storage

2022-01-22 标签:C#,net,core,Keys,persisted,storage,存储,Using,repository,HKLM,应用程序,密钥,注册表,用户,修改,配置文件,memory,Neither

今天在查看网站日志的,看到警报:Using an in-memory repository. Keys will not be persisted to storage.Neither user profile nor HKLM registry available. Using an epheme

VS发布asp.net core项目在web.config包含production环境变量
Asp.net

VS发布asp.net core项目在web.config包含production环境变量

2022-01-22 标签:VS,发布,asp.net,core,项目,web,config,包含,production,环境变量,EnvironmentName,PropertyGroup,设置,配置文件,文件,Visual,Studio,2022,NET6.0

今天在用Visual Studio 2022发布NET6.0或者说asp.net core发布时,在web.config包含production或者Development,VS在发布时替换asp.net core中的web.config