05 2022 档案
摘要:异常 原因: 控制器里面的对外的方法必须加访问方式 如下:
阅读全文
摘要:使用SQLite 创建表报错如下: 警告提示:tried accessing the SQLite plugin but Cordova is not available 场景:在浏览器模拟测试 原因:SQLite 只能在真机上使用,不能再浏览器上使用
阅读全文
摘要:场景: 程序运行正常,但发布ABP程序到本地iis部署,运行异常 异常: 查看日志,异常如下: 原因: 数据库连接字符串异常 解决: 未发布前的连接字符串 发布后需要改成如下(必须添加账号密码)
阅读全文
摘要:1.后端 生成验证码 1 /// <summary> 2 /// 自定义长度验证码(字母+数字) 3 /// </summary> 4 /// <param name="length">验证码长度</param> 5 /// <returns></returns> 6 private Verific
阅读全文
摘要:在环境都升级的情况下 方式一:删除依赖包node_modules和带有lock标识的yarn和package的文件(如yarn.lock,package-lock.json) 重新安装依赖包 若方式一失败使用方式二 方式二: 删除路径node_modules\@delon\theme下的node_m
阅读全文
摘要:转换 1 public static string XmlPublicKeyToPem(string xmlPublicKey) 2 { 3 RSAParameters rsaParam; 4 using (RSACryptoServiceProvider rsa = new RSACryptoSe
阅读全文
摘要:获取密钥并存储至密钥容器 1 /// <summary> 2 /// 生成密钥 3 /// </summary> 4 public static RSAKey GenerateRSAKey() 5 { 6 RSAKey RSAKEY = new RSAKey(); 7 //密钥存储容器 8 CspP
阅读全文
摘要:1 using (var command = CreateCommand(sql, CommandType.Text, parameters)) 2 { 3 using (var reader = await command.ExecuteReaderAsync()) 4 { 5 var list
阅读全文
摘要:1 select SQL_CALC_FOUND_ROWS * from table1 LIMIT 0,10; 2 select FOUND_ROWS() as total; 注:以上两条语句同时选中执行 结果: 结果1为 分页的前10条数据,结果2位分页的总条数(此种方式只会在数据库中执行一次)
阅读全文
摘要:1 ConcurrentBag<PackageCheckDataDownLoadDto> pList = new ConcurrentBag<PackageCheckDataDownLoadDto>();//保证线程安全 2 Parallel.ForEach(list, new ParallelOp
阅读全文
摘要:Stopwatch sw = new Stopwatch(); sw.Start(); //需要计算执行时间代码 sw.Stop(); TimeSpan ts2 = sw.Elapsed; Console.WriteLine("Stopwatch总共花费{0}ms.", ts2.TotalMilli
阅读全文
摘要:出现场景: 将一个非tab页的路由model定义在了tab的子路由中如下: 当从tab页跳转至该路由下的也页面,页面只会渲染一次(即只会调用ngOnInit一次),此后再次进入该子页都不会再渲染且不会调用ngOnInit事件 后面查阅资料说是在 Ionic 中,tab 渲染成功后,只要应用不重启,t
阅读全文
摘要:select * from (select *,ROW_NUMBER() OVER(partition by OrderDate,PackageNo,BatchCode,SortLine order by SortLine) as new_indexfrom table) t where new_i
阅读全文
摘要:异常: 先单独使用--ignore-scripts安装报错的包 npm install sharp@0.29.3 --ignore-scripts 注意:安装前需要到C:\Users\hcpc0\AppData\Roaming\npm目录下删除关于cordova-res的文件(每一次执行npm in
阅读全文

浙公网安备 33010602011771号