ICode9

精准搜索请尝试: 精确搜索
  • npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.2022-06-15 10:03:22

    问题描述: vscode 终端输入 npm 命令总是提示以下错误 npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. 解决方案: 找到node的安装目录下面的 npm.cmd 文件修改 prefix-g 改为 prefix --location=global 更改后报错有些系统

  • 多数据vue 页面渲染满的情况一些想法2022-06-15 09:31:28

     用length 的 v-if  控制数组索引大于多少就不显示,监听滑块的 位置,当距离 底部一定位置时  添加控制的长度。 TRANSLATE with x English Arabic Hebrew Polish Bulgarian Hindi Portuguese Catalan Hmong Daw Romanian Chinese Simplified Hungarian Russian

  • 【clickhouse专栏】对标mongodb存储类JSON数据文档统计分析2022-06-15 08:02:46

    一、文档存储的需求 很多的开发者都使用过mongodb,在mongodb中数据记录是以文档的形式存在的(类似于一种多级嵌套SQL的形式)。比如下面的JSON数据结构:dev_ip表示某一台服务器的ip、location字段存放经纬度、meminfo.total和meminfo.userd分别代表内存总量和使用量。 [{ "dev_ip":

  • py4j.protocol.Py4JError: org.apache.spark.api.python.PythonUtils.getPythonAuthSocketTimeout does not2022-06-14 18:31:15

    原因:     找不到spark,需要通过工具发现,方案如下 import findspark findspark.init()        此页面的语言为丹麦语   翻译为中文(简体)         中文(简体) 中文(繁体) 丹麦语 乌克兰语 乌尔都语 亚美尼亚语 俄语 保加利亚语 克罗地亚语 冰岛语 加泰罗尼亚语 匈

  • springboot集成redis2022-06-14 13:34:47

    加入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 配置文件 redis: host: 127.0.0.1 port: 6379

  • 如何在Vue项目中,通过点击DOM自动定位VScode中的代码行?2022-06-14 09:33:48

    作者:vivo 互联网大前端团队- Youchen 一、背景 现在大型的 Vue项目基本上都是多人协作开发,并且随着版本的迭代,Vue 项目中的组件数也会越来越多,如果此时让你负责不熟悉的页面功能开发,甚至你才刚刚加入这个项目,那么怎么样才能快速找到相关组件在整个项目代码中的文件位置呢?想必大

  • PHP 表单传值2022-06-13 21:31:55

    表单传值的方式 GET传值 form表单 <form action="提交地址" method="GET"> 表单元素 </form> a标签 <a href="www.baidu.com/index.php?name=LQL" /> location的href属性 <script>document.location='www.baidu.com/index.php?i

  • JavaScript-前进后退window.history.go(1)-后退window.history(-1)-设置地址栏上url:window.location.href=' 网址�2022-06-12 21:35:25

    1、前进:onclick="window.history.go(1)" 2、后退:onclick="window.history.go(-1)" onclick="window.history.back()" <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>

  • 3.3.2 router.replace2022-06-12 06:31:07

    语法 router.replace(location) router.replace 跟 router.push 很像,唯一的不同是它不会向 history 栈添加新记录,而是跟它 的方法名一样只替换掉当前的 history 记录。 router.replace(...)等价于<router-link :to="..." replace>。

  • golang代码静态扫描工具2022-06-12 01:01:01

    官网: https://github.com/golangci/golangci-lint 执行命令: golangci-lint run --timeout=10m 相关博客: https://blog.csdn.net/wohu1104/article/details/113751501 TRANSLATE with x English Arabic Hebrew Polish Bulgarian Hindi Portuguese Catalan Hmong

  • select查询时,查询出的数据字段为空值时的处理2022-06-10 22:01:34

    对其where增加限制条件 leave_things!='' 或 leave_things!=null   TRANSLATE with x English Arabic Hebrew Polish Bulgarian Hindi Portuguese Catalan Hmong Daw Romanian Chinese Simplified Hungarian Russian Chinese Traditional Indones

  • 编程式导航路由跳转到当前路由(参数不变), 多次执行会抛出NavigationDuplicated的警告错误?2022-06-10 19:07:10

    注意:编程式导航(push|replace)才会有这种情况的异常,声明式导航是没有这种问题,因为声明式导航内部已经解决这种问题。 这种异常,对于程序没有任何影响的。 为什么会出现这种现象: 由于vue-router最新版本3.5.2,引入了promise,当传递参数多次且重复,会抛出异常,因此出现上面现象, 第一种

  • Uncaught (in promise) Error: Navigation cancelled from "/" to "/home" with a new2022-06-10 03:31:21

    vue报了以下报错:   原因:未知,能解决就行(。。。。)   在router的index.js中插入以下代码解决: const originalPush = VueRouter.prototype.push; const originalReplace = VueRouter.prototype.replace; //push VueRouter.prototype.push = function push(location, onResolve, on

  • nginx配置2022-06-09 17:02:52

    worker_processes 2;events { worker_connections 65535;} http { include mime.types; default_type application/octet-stream; #提高操作文件的效率 sendfile on; #隐藏nginx版本号 server_tokens off; #将响应头和正文的开始部分一起发送 t

  • nginx单域名多站点配置2022-06-09 14:38:03

    nginx 单域名多站点配置 背景 单台服务器上只依靠nginx实现多站点,有两种方式 端口区分 通过路径区分 1、端口区分 http { include mime.types; gzip on; server { listen 8080; location / { root /opt/nginx/html/site1/; index index.html; } }

  • vue.js:拖动四个角及四个边来改变选区大小并移动(vue@3.2.36)2022-06-08 12:31:10

    一,js代码: <template> <div style="background: #ffffff;" id="root" @mousemove="onMove" @mouseup="onEnd"> <div id="wrapper" style="position: relative;width:300px;overflow: hidden;marg

  • 前后端获取url2022-06-07 15:00:09

    一、js获取页面url   // --获取域名 www.xxx.com   var domain = document.domain;   var domain = window.location.host; // --获取url,不含参数  http://www.xxx.com/JDYmdyPGph.php/pim/schedule   var url= window.location.protocol+"//"+window.location.host+

  • dialog弹窗修改圆角2022-06-07 02:00:10

    /deep/.el-dialog { border-radius: 15px; }   TRANSLATE with x English Arabic Hebrew Polish Bulgarian Hindi Portuguese Catalan Hmong Daw Romanian Chinese Simplified Hungarian Russian Chinese Traditional Indonesian Slovak Czech Ital

  • nginx和java示例2022-06-06 15:03:56

    nginx upstream miao_server { #server 192.168.209.53:8080 max_fails=2 fail_timeout=10s; #server 192.168.209.54:8080 max_fails=2 fail_timeout=10s; server 192.168.104.233:8080 max_fails=2 fail_timeout=10s; } server { liste

  • Vue消息提示this.$message方法使用2022-06-05 21:34:18

    type 取值 ‘success’(成功) /warning(警告)/info(消息)/error(错误)/;  if (this.resetForm.cancelThings == null) {         this.$message({           message: "请输填写驳回原因",           type: "warning",         });       } else if{   }

  • Boolean类型传值 修改sql语句2022-06-04 15:04:12

    数据库字段定义  tinyint为数据库中的boolean类型   1为true  0为false    mybatis中mapper 修改语句 系统框架使用SSM当更新的数据类型为boolean时使用if标签判断不能判断时段是否为空( showIf!='' ),只判断字段是否等于null <if test="showIf!=null "> sh

  • Substring()、lastIndexOf()的用法2022-06-04 00:33:41

    lastIndexOf() 例如:   string str = "abcdefg"; str = str.Substring(0, str.LastIndexOf("c")); Response.Write(str); //结果为 ab //就是截取c前面的字符串。 Substring() 例如:   string qian = null; string hou = null; string str = "abcdefg&

  • MybatisPlus日志2022-06-03 00:04:08

    <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.5.1</version> </dependency> #配置日志 打印sql语句 mybatis-plu

  • 使用 Windows PowerShell 来远程管理服务器2022-06-02 13:00:07

      TRANSLATE with x English Arabic Hebrew Polish Bulgarian Hindi Portuguese Catalan Hmong Daw Romanian Chinese Simplified Hungarian Russian Chinese Traditional Indonesian Slovak Czech Italian Slovenian Danish Japanese Spanish Dut

  • 两个时间连成一个显示(直接sql)2022-06-02 00:34:00

    concat(concat(startTime,'-'),endTime) concat(A,B) TRANSLATE with x English Arabic Hebrew Polish Bulgarian Hindi Portuguese Catalan Hmong Daw Romanian Chinese Simplified Hungarian Russian Chinese Traditional Indonesian Slovak

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

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

ICode9版权所有