Powered by md-Blog  文 - 篇  访客 -

  • Linux解决服务器8小时差的方法,系统时间和硬件时间同步

    1、查看日期信息date2、改硬件时间查看硬件时间hwclock --show设置硬件时间hwclock --set --date '2021-09-18 16:57:28'设置系统时间和硬件时间同步hwclock --hctosys让系统时间与硬件时间保持一致hwclock -s../../md/Linux服务器/

    2021-09-23 15:50:41   2021-09-23 15:50:41
    分类:Linux服务器 / 浏览:016323834414675
  • Vue.js获取当前页面本页元素宽度的方法

    标签<div class="bar" ref="item"></div>获取const itemWidth = this.$refs.item.clientWidth;../../md/Vue/

    2021-07-20 19:41:17   2021-07-20 19:41:17
    分类:Vue / 浏览:016267812777624
  • CentOS8如何使用yum切换阿里源的方法

    1、备份原配置文件mv /etc/yum.repos.d/CentOS-Linux-BaseOS.repo /etc/yum.repos.d/CentOS-Linux-BaseOS.repo.repo.backup2、下载阿里源的 reopswget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo3、替换部分字段(阿里云服务器跳过、自建服务器必做!)sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.rep

    2021-07-15 21:01:43   2021-07-15 21:01:43
    分类:Linux服务器 / 浏览:016263541031666
  • CentOS7安装中文语言包zh_CN.UTF-8

    1、查看本地是否安装了中文字符集locale -a|grep CN2、如果没有,则安装中文环境yum install kde-l10n-Chinese -yyum install glibc-common -y3、修改配置编码项localedef -c -f UTF-8 -i zh_CN zh_CN.utf85、vi /etc/profile 追加export LC_ALL=zh_CN.utf86、执行生效source /etc/locale.conf../../md/Linux服务器/

    2021-07-15 21:01:42   2021-07-15 21:01:42
    分类:Linux服务器 / 浏览:016263541024604
  • Vue使用vue-pdf.js进行PDF分页、滚动预览放大缩小缩放及文件提取码下载加密下载的方法

    1、安装:vue-pdfyarn add vue-pdf2、修改 node_modules/vue-pdf/src/componentFactory.js由于在缩放中,会产生闪烁(重新渲染),故需要去掉75、76行内容// if ( resolutionScale < 0.85 || resolutionScale > 1.15 ) // this.pdf.renderPage(this.rotate);3、源码:viewPDF.vue<template> <div @contextmenu.prevent=""> <!-- 上一页 --> <div class="

    2021-07-13 19:16:16   2021-07-13 19:13:35
    分类:Vue / 浏览:016261748155391
  • Element-UI模态框会话框弹框dialog出现滚动条,再次点击无法置顶滚动条的解决方法

    现象说明弹框出现后,鼠标滚动到一半或者页面最底部,下次在点开的时候,滚动条及弹框位置还在一半或者底部,可以通过以下方式解决:<el-dialog :title="formTitle" :visible.sync="dialogFormVisible" :lock-scroll="false" //主要是这个属性 :append-to-body="true" //跟这个属性 :close-on-click-modal="

    2021-07-13 19:08:50   2021-07-13 19:08:50
    分类:Vue / 浏览:016261745302376
  • Vue.js $router路由在新标签页面打开链接的方法

    let routeData = this.$router.resolve({ path: 'newPage', query: { id: 1 } }); window.open(routeData.href, '_blank');../../md/Vue/

    2021-07-13 19:08:48   2021-07-13 19:08:48
    分类:Vue / 浏览:016261745285698
  • gin: go.mod file not found in current directory or any parent directory; see 'go help modules'

    Go 语言安装 Gin 框架,无法 run,报错:no required module provides package github.com/gin-gonic/gin: go.mod file not found in current directory or any parent directory; see 'go help modules'解决方法go mod init gin go mod edit -require github.com/gin-gonic/gin@latest go mod vendor../../md/Go/

    2021-07-13 19:08:43   2021-07-13 19:08:43
    分类:Go / 浏览:016261745232266
  • go build打包生成不同系统下的运行可执行文件exe

    Mac下编译Linux, Windows平台的64位可执行程序CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build main.go CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build main.goLinux下编译Mac, Windows平台的64位可执行程序CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build main.go CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build main.goWindows下编译Mac, Linux平台的64位可执行程序SET CGO_ENABLED=0 SE

    2021-07-13 19:08:43   2021-07-13 19:08:43
    分类:Go / 浏览:016261745239890
  • Vue.js使用FontAwesome字体图标库

    安装yarn add font-awesomemain.js 调用// FontAwesome import 'font-awesome/css/font-awesome.min.css';使用<i class="fa fa-ban"></i>../../md/Vue/

    2021-07-10 13:17:34   2021-07-10 13:17:34
    分类:Vue / 浏览:016258942545187
  • 春明


     
    百度站内搜索


  • 晋ICP备18012953号-1
  • 百度统计