con 相关的软件列表

js 时间格式化输出工具函数
JavaScript

js 时间格式化输出工具函数

2024-01-09 标签:js,时间,格式化,工具,函数,Date,正则,格式化工具函数,指定格式,年月日,js输出年月日时分秒

一个简单的 JavaScript 时间格式化输出工具方法函数示例:const WEEKS = ['日', '一', '二', '三', '四', '五', '六'];const formatFlags

js 关于 this指向问题
JavaScript

js 关于 this指向问题

2024-01-03 标签:js,指向,问题,getName,name,bar,对象,绑定,函数,var,function,执行,apply,new,Person,上下文,创建,console,log,this,this指向,匿名函数,箭头函数

关于 this当 JavaScript 执行到一段可执行代码时,会创建一个可执行上下文。执行上下文可以理解为当前代码的执行环境。 执行上下文的周期可以分为两个阶段。创建阶段在这个阶段,可执行上下文会创建变量对象、建立作用域链以及确定 this 指向问题。代码执行阶段创建完成后,就开始执行代码,完成变

CommonJs 和 ES6 Module 区别
JavaScript

CommonJs 和 ES6 Module 区别

2023-12-28 标签:CommonJs 和 ES6 Module 区别,CommonJs,ES6,js,export default,export.moudle

ES6 示例:user.jsexport var age = 22;setTimeout(() => {age = 33;}, 500);index.jsimport * as user from './user';console.log('修改之前的age:%s', user.age);se

js实现选中复制的功能
JavaScript

js实现选中复制的功能

2023-12-28 标签:js,实现,选中,复制,功能,clipboard,textarea,button,data,script,html,Trigger,btn,action,cut,console,info,head,meta

1.选中 2.复制选中利用 Selection API复制使用execCommand一般使用插件clipboard.js完成复制粘贴DemoMussum ipsum cacildscopy to clipboardMussum ipsum cacildsCut to clipboardconst c

edge控制台不能粘贴,报错:Warning: Do not paste code you do not understand or have not checked yourself into the DevTools console
JavaScript

edge控制台不能粘贴,报错:Warning: Do not paste code you do not understand or have not checked yourself into the DevTools console

2023-12-19 标签:edge控制台禁止粘贴,edge控制台不能复制代码,edge控制台不能粘贴,Warning,Do,paste,code,understand,checked,DevTools,console,allow,rsquo,pasting,edge控制台粘贴要不了,Self-XSS,edge控制台不让粘贴

一如往学的用Microsoft edge调试web页面,F12打开DevTools,刚要粘贴信息却不能正常粘贴,报错:Warning: Dont paste code into the DevTools Console that you dont understand or havent

C#hex字符转byte报错:不是 Byte 的有效值
C#.net

C#hex字符转byte报错:不是 Byte 的有效值

2023-11-24 标签:C#,hex,字符,byte,报错,不是,Byte,有效值,十六进制,OK,Convert,ToByte,16,越界,转成,改成,设定,数值

今天用C#在将十六进制的字符转成byte报了个错:不是 Byte 的有效值,这错误一般是数值越界了或转换没有设定好,把代码改成下面这样的,就OK了:Convert.ToByte(hex, 16)

sqlserver linux 2019设置端口
SQLServer

sqlserver linux 2019设置端口

2022-02-18 标签:linux修改sqlserver端口,sqlserver linux 2019,设置sqlserver linux端口,mssql-server,

sql server 2019 for linux 的默认端口为1433,今天突然想改端口.在ubuntu下用以前的老命令 sudo /opt/mssql/bin/mssql-conf set tcpport 报错设置tcpport不受支持The setting 'tcpport' isnot supported.

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等.起初还以为是配置有问题,