ICode9

精准搜索请尝试: 精确搜索
  • 严格检查模式2022-07-07 23:36:35

    严格检查模式 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <!-- 前提:idea需要设置支持ES6语法 'use strict';严格检查模式,用来预防JavaScript的随意性导致产生的一些问题 必须写在JavaS

  • pip 安装报错 error in anyjson setup command: use_2to3 is invalid.2022-07-07 18:35:41

    前言 pip 安装anyjson0.3.3版本时报错 error in anyjson setup command: use_2to3 is invalid. 当然在安装其他版本时也会有这种报错,比如安装django-celery3.2.2版本,它会先安装依赖包anyjson 主要原因是在setuptools 58之后的版本已经废弃了use_2to3 anyjson 安装 pip 安装 pip in

  • 通过nrm命令更改npm的镜像地址2022-07-07 14:00:08

    a.运行 npm i -g nrm 全局安装 nrm 包 b.通过 nrm ls 查看可用的镜像源地址 c.通过 nrm use taobao 切换镜像源地址  

  • 引用的类被废弃undefined method think\Loader::import()(thinkPHP5.0--5.1)2022-07-05 10:32:58

    文件上传导入的引用undefined method think\Loader::import() use use PhpOffice\PhpSpreadsheet\IOFactory; 原来的引用5.0 Loader::import('.PHPExcel.PHPExcel.IOFactory'); $objReader = new \PHPExcel_Reader_Excel2007(); 修改成 $objReader = IOFactory::createReader(&

  • oracle简单使用2022-07-05 00:34:09

    oracle中只能使用values插入数据,想要批量插入,就要拼接 oracle中相对字符串数据排序,可以使用to_number(字段名) select * from ( select * from test t where t.is_use='Y' ) where rownum<10    oracle的for update 会造成锁表操作 oracle创建表,对字段设置默认值 create t

  • vue-懒加载使用全教程2022-07-04 15:00:16

    一、 使用 Lazyload是Vue指令,使用前需要对指令进行注册 import {createApp} from 'vue' import App from './App.vue' import router from './router' import store from './store' import Vant {Lazyload} from 'vant' import 'vant/li

  • cpu&io密集型2022-07-04 02:01:43

    通常我们说一个程序是cpu密集型就是cpu用的多,io密集型就是io用的多,这种说法对吗? 答案是:不能算错,但也不全对。其实应该从程序的瓶颈来看待这个问题,若系统瓶颈在cpu,那就是cpu密集型;反之,若在io,则是io密集型。 了解程序是哪种类型,对系统优化有着关键的指导作用。 比如我们平时使用

  • python | 浅学 | 6 LookupError: 'base64' is not a text encoding; use codecs.encode() to handl2022-07-02 16:34:34

     你这样 import base64 str1 = "this is string example" print (str1) str1 = str1.encode(encoding ='utf-8',errors = 'strict') # 先转成bytes 的string print (str1) str2= base64.b64encode(str1) # 再使用base64.b64e

  • IdentityServer4 如何修改绑定路径 ,修改.well-known/openid-configuration 返回的前缀2022-07-01 16:34:51

    4.0已经删除了以下属性,所以这样不行 services.AddIdentityServer(options => { //4.0已经删除此属性 options.PublicOrigin = "https://my.id.server"; });   正确的是直接使用ASP.NET Core转发标头方法: app.Use(async (ctx, next) => { ctx.SetIdentityServerOri

  • No statements may be issued when any streaming result sets are open and in use on a given connection2022-06-29 20:04:52

    引言 本文整理了 MySQL 流式查询一些原理和用法, 包括 MySQL 官方文档对于 ResultSet 流式查询的说明以及很多网友关于 MySQL 流失查询踩坑的说明. 最后给出了解决流式查询的 connection 在未查询完结果集的数据之前又被其他地方使用导致报错的解决方法, 希望能对读者有所帮助. 原

  • Module '"*.vue"' has no exported member 'RulesProp'. Did you mean to u2022-06-29 17:35:06

    报错显示没有导出该成员,检查路径没有问题,并且和其一起导出的组件也是正常显示的,百度了很多之后... 解决方案 : 重新启动项目后ok 引用代码如下 报错信息如下

  • 2022-06-29 vue组件 v-viewer 在同时打开了 iview 的 modal 时,modal的层级会覆盖 v-viewer2022-06-29 11:02:46

    前言:vue+iview项目业务中出现弹出modal,点击modal中按钮显示图片,图片被modal挡住的情况。 显示图片的组件叫v-viewer,打开控制台可以看到modal的默认层级为1000-2200不等,v-viewer的层级为2015。 至于为什么iview的modal的层级为什么会忽高忽低,这里暂且不论。 解决方案: 在main.js 注

  • When to Use Clustered or Non-Clustered Indexes in SQL Server2022-06-28 21:32:03

    When to Use Clustered or Non-Clustered Indexes in SQL Server Database indexes are used to improve the speed of database operations in a table with a large number of records. Database indexes (both clustered indexes and non-clustered indexes) are quite sim

  • pod warnings2022-06-28 15:02:13

      [!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.   [!] The `PicoClient [Relea

  • element-tiptap 本地运行报错:Uncaught RangeError: Duplicate use of selection JSON ID cell at Selection.json2022-06-27 14:03:33

    1. 本地运行报错,解决方法: 2.线上打包运行不影响,不报错,流水线自动打包也不影响

  • gum切换管理多个git账户2022-06-27 12:03:59

    下载 npm i -g @gauseen/gum 查看已有git账户列表 gum list 添加git账号 gum set user1 --name git名 --email git邮箱 user1为group-name 切换使用 gum use user1 在git init下的项目里,打开cmd,输入gum use user1即可切换账号 gum use user1 --global 全局使用 删除

  • SPA(单页应用)首屏加载速度慢怎么解决?2022-06-25 12:34:41

    一、什么是首屏加载 首屏时间(First Contentful Paint),指的是浏览器从响应用户输入网址地址,到首屏内容渲染完成的时间,此时整个网页不一定要全部渲染完成,但需要展示当前视窗需要的内容,首屏加载可以说是用户体验中最重要的环节 二、加载慢的原因 在页面渲染的过程,导致加载速度慢的因素

  • 解决:Web server failed to start. Port XXX was already in use2022-06-25 09:03:56

    https://blog.csdn.net/weixin_43883917/article/details/121329159 1、查看被占用的端口的进程 netstat -aon|findstr 端口号 2、根据PID找到占用此端口的进程 tasklist|findstr 端口号 3、结束这个进程 taskkill /f /t /im 进程名  

  • jmeter 性能测试 报错信息“address already in use:connect”解决方法2022-06-24 18:32:37

     Jmeter_性能压测报错address already in use:connect jmeter性能测试报“address already in use:connect” 报错信息 原因分析: 这个问题的原因是windows端口被耗尽了(默认1024-5000),而且操作系统要 2~4分钟才会重新释放这些端口,所以可以增加windows的可用端口来解决。windows端

  • [Professional C# 7] Use of Properties and Methods2022-06-24 11:31:48

    ➤ Client code should be able to read its value. Write-only properties are not recommended, so, for exam-ple, use a SetPassword method, not a write-only Password property. ➤ Reading the value should not take too long. The fact that something is a property

  • Why use nested classes?2022-06-24 09:00:26

    Why use nested classes in C# code? Enable encapsulation Many times nested classes are implementation details of the class. Users of the main class should not have to care about their existence. You should be able to change them at will without requiring t

  • CRT工具 直连AMZ主机2022-06-22 16:05:10

    1)购买亚马逊服务器后生成的xxx.pem 在Linux环境下 chmod 700 xxx.pem ssh-keygen -y -f xxx.pem > xxx.pem.pub   2)在win环境 把xxx.pem xxx.pem.pub文件放在一起, CRT + NEW     amz-xxx-pc hostname:        ec2-5-16-11-6.us-west-1.compute.amazo

  • How to kill server when seeing “EADDRINUSE: address already in use”2022-06-22 02:32:07

    How to kill server when seeing “EADDRINUSE: address already in use”   https://stackoverflow.com/questions/4075287/node-express-eaddrinuse-address-already-in-use-kill-server https://levelup.gitconnected.com/how-to-kill-server-when-seeing-eaddrinuse-addres

  • 数据库出现CLR运行时报错的系列问题:SQL SERVER运行时程序集错误笔记(反推SQL SERVER部分功能net Framwork实现)2022-06-21 02:00:20

    SQL SEREVER 部分功能是C#写的,所以会报运行时错误 ,CLR 表明是用net framwork写的   最近在一个项目中备份数据库到本地,发现运行存储过程报错,一番查找   原因: 在备份数据库的时候,在机器A,那么数据库的拥有者是A\Administrator(如果用windows登录创建),那么但是我们还原到服务器B

  • 接口和抽象类的对比和接口的案例2022-06-19 14:00:07

    (1)所有的可以拨号的设备都应该有拨号功能(Dailup) (2)所有的播放设备都可以有播放功能(Play). (3)所有的照相设备都有拍照功能(takePhoto) (4)定义一个电话类Telephone,有拨号功能. (5)定义一个Dvd类有播放功能。 (6)定义一个照相机类Camera,有照相功能。 (7)定义一个手机类Mobile

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有