前端使用css动画绘制简易的进度条,数据多条的时候可以切换

news2024/12/27 12:01:24

文章目录

  • 一、效果图
  • 二、使用步骤
    • 1.公共的进度条组件
    • 2.使用
  • 总结


一、效果图

在这里插入图片描述

二、使用步骤

1.公共的进度条组件

我这里命名的progressBar.vue, 你们使用的时候直接复制粘贴到自己的项目里面即可。
文件中代码如下(示例):

<template>
  <div>
    <div style="width: 100%;height: 100%">
      <div v-for="(item, index) in showList" :key="index + item.value" class="item">
        <div :class="index < 3 && page == 1 ? ('itemIcon' + (index + 1)) : 'itemIcon'">{{ index + 1 }}</div>
        <div class="itemTitle">{{ item.name }}</div>
        <div class="itemValue">{{ item.value }}{{unit}}</div>
        <div class="itemBar">
          <div :class="index < 2 && page == 1 ? ('innerBar' + (index + 1)) : 'innerBar'" :style="'width:' + (item.value / maxValue * 100).toFixed(2) + '%;'"></div>
        </div>
      </div>
      <div class="pager-content">
        <div v-for="pageNum in totalPage" :class="pageNum == page ? 'selected' : ''" @click="page = pageNum"></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "progressBar",
  props: {
    dataList:{
      type: Array,
      default:[
        { name: '旅游行业', value: (Math.random() * 100).toFixed(1), },
      ],
    },
    unit:{
      type: String,
      default:'%',
    }
  },
  data () {
    return {
      page: 1,
      limit: 7,
    }
  },
  computed: {
    showList () {
      return this.dataList.slice(((this.page - 1) * this.limit), (this.page * this.limit))
    },
    totalPage () {
      const length = this.dataList.length
      let value = Math.floor(length / this.limit)
      if (length % this.limit !== 0) value++
      return value
    },
    maxValue(){
      let maxNum = 0
      let list = this.dataList.map(i => i.value)
      maxNum = Math.max(...list)
      return maxNum
    }
  },
}
</script>

<style scoped lang="less">

.item{
    position: relative;
    margin-top: 30px;
    width: 100%;
    height: 45px;
    .itemIcon1{
      position: absolute;
      background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAsCAYAAAATmipGAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllP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w2u90YcVlgcER2J8EKAm3nPZOuzC4uZYM2XY/f0zZ0NuApwU8f/AgwAHrOov2Y6zP8AAAAASUVORK5CYII=");
      width: 42px;
      height: 44px;
      font-family: DINPro-Bold;
      font-size: 16px;
      font-weight: normal;
      font-stretch: normal;
      line-height: 44px;
      letter-spacing: 0px;
      color: #ffffff;
      text-align: center;
    }
    .itemIcon2{
      position: absolute;
      background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAsCAYAAAATmipGAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ2MCwgMjAyMC8wNS8xMi0xNjowNDoxNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjIgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjI0MjlBNzgxM0NGMjExRUY5MTUwRUQzNDk5OUY3QjQyIiB4bXBNTTp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YsIoQO1rHNWqXhEzUF1pYicOLuiTuI6LJFGY2awc/faeOzMGgbnd34W4XJPpIi4xCKR4vFuWYmaWdnBgO0k7UvttMNGsV3p+6J0w/LNzuDASZHlN6SCL1Yz/Am5qFTQ8dKjFB4/eWV934F1uFq7pz21tZNmeh4wO5flnpZImpGYEbPTRX9PccmiTf6ihYekMiSrmyKlFJlQ3HVk+Gp5zIHrB/9c0fzr76dJq7VoSpWH45woXLVgc/mmG37SFHYtTdmsrUJ1ki1MqEgpLVV/3nVvODy8lmX3g10RWlbgzR78qPfWlZ9Yvl9TSuWmshih1vVUtwCBNKsknm4RgpnBjOqOnWui02MPQlpK6KvjSt+23pU3v+vOmT0ioNTVErVExmocRcrSODKVJZpVEz/bNo/8M298z951uDZ+R4cQfX9/6drFb/Vct/SQpNpmznKObsFMC9rNSp4KnEnbrf7y242Nw0c2sDDUV5g/980Zd92+TUCE0kKZvHwTGQAnTKHI8LOhm7VRV+lJ9ciSZAcHdZepuyFeHklQkWKH2DC/Twi2lsmuRt7bSpW5P5ak05JsjYeWcda5g9SYV59jkKeyY3FdDj8tA6z8zomS6/L3jWn93pbs2FIWDUCSFtZIcMLS4sX42UCVlyNJ2paQdN7PBmrKii7mzwbTfyMZFmkckRoS4UkBTuc/k26dHWnMhHb5c+yS/rnTAV8IcFrtfwEGAEMMQNmZ/UzaAAAAAElFTkSuQmCC");
      width: 42px;
      height: 44px;
      font-family: DINPro-Bold;
      font-size: 16px;
      font-weight: normal;
      font-stretch: normal;
      line-height: 44px;
      letter-spacing: 0px;
      color: #ffffff;
      text-align: center;
    }
    .itemIcon3{
      position: absolute;
      background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAsCAYAAAATmipGAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6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qoXSyYGyH4DnN9ihzF2de/Hk92j0g7zqa11WM4xLZgZQWeykqcDB/mK3vggzpzsxZ00ekFhAk/0/YFteQRRFsrU5Zu6BbAthTLLx4aZrI36msgYRDbrJT58L5TTyxWN1TVJLCnTWEHZ6lGxdzWw5Ou2rOVoq8i5tvIW16WU6nhh09bVuBxrU6wvM4KeKbJntmtuhp9vbOv3rmLHjtbV6rC6BtuWFo/GxwY9KjBNy/E0HxuEzZuP5scG23cjFZYZHFFYCuFZAc7nO5NpnZ0ZzETM8OPY//rlzgQ8HeC8tn8FGABV5R4U7Uz3YAAAAABJRU5ErkJggg==");
      width: 42px;
      height: 44px;
      font-family: DINPro-Bold;
      font-size: 16px;
      font-weight: normal;
      font-stretch: normal;
      line-height: 44px;
      letter-spacing: 0px;
      color: #ffffff;
      text-align: center;
    }
    .itemIcon{
      position: absolute;
      width: 42px;
      height: 44px;
      font-family: DINPro-Bold;
      font-size: 16px;
      font-weight: normal;
      font-stretch: normal;
      line-height: 44px;
      letter-spacing: 0px;
      color: #ffffff;
      text-align: center;
      visibility: hidden;
    }
    .itemTitle{
      position: absolute;
      left: 50px;
      font-family: SourceHanSansCN-Regular;
      font-size: 16px;
      font-weight: normal;
      font-stretch: normal;
      //line-height: 47px;
      letter-spacing: 0px;
      color: #7fbfff;
    }
    .itemValue{
      position: absolute;
      right: 20px;
      font-family: SourceHanSansCN-Regular;
      font-size: 16px;
      font-weight: normal;
      font-stretch: normal;
      //line-height: 47px;
      letter-spacing: 0px;
      color: #ffffff;
    }
    .itemBar{
      position: absolute;
      left: 50px;
      top: 25px;
      width: calc(100% - 70px);
      height: 20px;
      background-color: #031632;
      border-radius: 9px;
      border: solid 1px #0234a7;
      .innerBar1{
        position: relative;
        margin-left: 2px;
        margin-top: 2px;
        height: 14px;
        background-image: linear-gradient(180deg,
        #ffe62c 0%,
        #ffa202 100%),
        linear-gradient(
            #eeeeee,
            #eeeeee);
        background-blend-mode: normal,
        normal;
        border-radius: 7px;
        border: solid 1px #03297f;
        animation: lToR 2s;
        -moz-animation: lToR 2s;
        -webkit-animation: lToR 2s;
        -o-animation: lToR 2s;
      }
      .innerBar2{
        position: relative;
        margin-left: 2px;
        margin-top: 2px;
        height: 14px;
        background-image: linear-gradient(180deg,
        #2be9b6 0%,
        #049b68 100%),
        linear-gradient(
            #eeeeee,
            #eeeeee);
        background-blend-mode: normal,
        normal;
        border-radius: 7px;
        border: solid 1px #03297f;
        animation: lToR 2s;
        -moz-animation: lToR 2s;
        -webkit-animation: lToR 2s;
        -o-animation: lToR 2s;
      }
      .innerBar{
        position: relative;
        margin-left: 2px;
        margin-top: 2px;
        height: 14px;
        background-image: linear-gradient(180deg,
        #2cd0ff 0%,
        #0084ff 100%),
        linear-gradient(
            #eeeeee,
            #eeeeee);
        background-blend-mode: normal,
        normal;
        border-radius: 7px;
        border: solid 1px #03297f;
        animation: lToR 2s;
        -moz-animation: lToR 2s;
        -webkit-animation: lToR 2s;
        -o-animation: lToR 2s;
      }
    }
  }

.pager-content{
  position: absolute;
  bottom: 30px;
  height: 20px;
  display: flex;
  justify-content: space-evenly;
  flex-flow: row nowrap;
  background: rgba(0,0,0,0.3);
  padding-top: 4px;
  border-radius: 10px;
  width: 85%;
  width: 250px;
  left: calc(50% - 125px);
}
.pager-content>div{
  width: 12px;
  height: 12px;
  cursor: pointer;
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTMyIDc5LjE1OTI4NCwgMjAxNi8wNC8xOS0xMzoxM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OTdBRjMzNzMxMUVBOTlGNUZDN0ZGRDdDQkE4OSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpCQzAxOTdCMDMzNzMxMUVBOTlGNUZDN0ZGRDdDQkE4OSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PpAUD7AAAAIvSURBVHjalFRBTxNREJ63+3YLK1GQGhRcjBghES692sRE0j9gvHgx+lP8I148e/NkQoKXeiAxXDTxgiYWgYS1baDWttvu+s3ut1oJiL7ky7ydN/PtzLyZZ+YepnJiuYAH+ISlfggMiBgYjTvZsb1DxwCYBmYpA553gTbwjbJL0mScSEkmgEvAArAE3AKuk0zovAvsAJ+APep6SlYQ+SRRggoSq168J7XlipRXFkUuGDCA4sO2RF82ZSONpQ67beAz0FQyy5oEjKSSzMqD4Ims374psgr6ZVRrBvHeWBG5siTlrYo8+vhc5tIoC6DPiGKHhZ3RaFJE0n0s6yUkVEIUUyYnCW0us+8QET6V+6kvVWagvl5R4Mtak0FVaqN50OMi+0AHaKGUjWEuO9Qn11Dlu1JjHdXXtyTSgobxmpQ1XnWIcLm7w7yAGonq9Fv1ulfb0hsJ6ZsR2eLKRwu54zH+vs8uaSd5mn2Sq17PZT47LtrDWjljHcKhl+bSM3m6GklGgmWSP+0tOzZrNvcr2nXx96E6HZ/xI+fgV2+p79Bhd6qi4b2XSP5x0bZB30FBpE2147+VDXf/fBK1UVt2ebMg0gFsadubgdSDF7Lp7v2dRG3UlqOiEcXu1J1nOv4pa9UzP6TtvZMjGF5NJ3EjmEAzyglKdYkmX8orpyOvOSKa2pESGT4jxdBO82KLoQ1PDG3jvKFNqGhyflocyNOekSbl99OekXGymEaH//Ow/RRgAFR62RXAIZxlAAAAAElFTkSuQmCC") no-repeat center center !important;
}
@keyframes lToR
{
  from {width: 0px;}
}
@-moz-keyframes lToR /* Firefox */
{
  from {width: 0px;}
}

@-webkit-keyframes lToR /* Safari and Chrome */
{
  from {width: 0px;}
}

@-o-keyframes lToR /* Opera */
{
  from {width: 0px;}
}
</style>

2.使用

在另外一个文件中要使用进度条组件,代码如下(示例):

<template>
  <div class="part3_2">
    <progressBar class="part_content" :dataList="dataList" :unit="'%'"></progressBar>
  </div>
</template>

<script>
import progressBar from "../../../components/progressBar.vue";
export default {
  name: 'part3_2', // vue名称
  components:{progressBar},
  data () {
    return {
      dataList: [],
    }
  },
  mounted() {
    this.init()
  },
  methods: {
    //初始值
    async init(){
      this.dataList = [
        { name: '旅游行业', value: (Math.random() * 100).toFixed(1), },
        { name: '旅游行业', value: (Math.random() * 100).toFixed(1), },
        { name: '旅游行业', value: (Math.random() * 100).toFixed(1), },
        { name: '旅游行业', value: (Math.random() * 100).toFixed(1), },
        { name: '旅游行业', value: (Math.random() * 100).toFixed(1), },
        { name: '旅游行业', value: (Math.random() * 100).toFixed(1), },
        { name: '旅游行业', value: (Math.random() * 100).toFixed(1), },
        { name: '旅游行业', value: (Math.random() * 100).toFixed(1), },
        { name: '旅游行业', value: (Math.random() * 100).toFixed(1), },
        { name: '旅游行业', value: (Math.random() * 100).toFixed(1), },
        { name: '旅游行业', value: (Math.random() * 100).toFixed(1), },
        { name: '旅游行业', value: (Math.random() * 100).toFixed(1), },
        { name: '旅游行业', value: (Math.random() * 100).toFixed(1), },
        { name: '旅游行业', value: (Math.random() * 100).toFixed(1), },
        { name: '旅游行业', value: (Math.random() * 100).toFixed(1), }
      ]
      this.dataList.sort((a,b) => {
        return b.value - a.value
      })
    },
  }
}

</script>

<style scoped lang="less">
.part3_2{
  position: absolute;
  top: 230px;
  left: 60px;
  width: 31%;
  height: calc(100% - 250px);
  .part_content {
    position: absolute;
    top: 30px;
    width: 100%;
    height: calc(100% - 30px);
    overflow: auto;
  }
}
</style>


总结

以上就是我今天分享的内容,觉得有用的读者可以动动小手点一个小赞。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1984739.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

EasyX 碰撞检测

代码&#xff1a; #define _UNICODE #define UNICODE#include <array> #include <cmath> #include <ctime> #include <format> #include <graphics.h> #include <vector>typedef struct tagRECTF {double left;double top;double right;d…

You Only Look Once:Unified, Real-Time Object Detection 论文阅读

论文名&#xff1a;You Only Look Once:Unified, Real-Time Object Detection 论文作者&#xff1a;Joseph Redmon et.al. 期刊/会议名&#xff1a;CVPR 2016 发表时间&#xff1a;2016-5 ​论文地址&#xff1a;https://arxiv.org/pdf/1506.02640 1.摘要 我们提出了一种新的目…

论文辅导 | 结合变种残差模型和 Transformer 的城市公路短时交通流预测

辅导文章 模型描述 城市公路交通流的预测受到历史交通流量和相邻车道交通流量的影响&#xff0c;蕴含了复杂的时空特征。针对传统交通流预测模型卷积长短时记忆网络(ConvLSTM)进行交通流预测时&#xff0c;未将时空特征分开提取而造成的提取不充分、特征信息混淆和特征信息缺失…

视频融合技术

三维视频融合技术遵循数字孪生多源数据融合的原则&#xff0c;比视频窗口、矩阵更加直观高效&#xff0c;省去了人脑理解空间的时间&#xff0c;可有效提升数字孪生城市在物联感知操作、虚实融合交互等方面的能力&#xff0c;动静一体、虚实结合&#xff0c;让三维场景“动起来…

常见的SQL注入

联合查询 如下&#xff0c;要求我们传入一个id值过去。传参?id1&#xff0c;当我们输入id1和id2时&#xff0c;页面中name值和password的值会发生变化&#xff0c;说明此时我们输入的数据和数据库有交互并且将数据显示在屏幕上了 输入?id1&#xff0c;页面发生报错&#xf…

手机联网如何设置动态ip

在现代社会&#xff0c;手机已成为我们日常生活中不可或缺的一部分&#xff0c;无论是工作、学习还是娱乐&#xff0c;都离不开网络的支持。而在手机联网的过程中&#xff0c;IP地址的分配方式显得尤为重要。动态IP地址因其灵活性和安全性&#xff0c;成为了许多用户的首选。那…

电子合同怎么制作?9款常用电子合同软件

文章将介绍了以下9个工具&#xff1a;e签宝、文书宝、签通云、快签宝、法天使、Zycus iContract、airSlate WorkFlow、Lightico、KeepSolid Sign。 在数字化快速发展的今天&#xff0c;电子合同成为了业务操作中不可或缺的一部分&#xff0c;但许多人仍然面临如何有效创建和管理…

Redis vs Memcached:Redis的三大优势

Redis vs Memcached&#xff1a;Redis的三大优势 1. 数据类型2. 数据持久化能力3. 高性能与灵活性 &#x1f496;The Begin&#x1f496;点点关注&#xff0c;收藏不迷路&#x1f496; 1. 数据类型 Redis&#xff1a;支持多样化的数据类型&#xff0c;包括字符串&#xff08;S…

前端性能优化-回流与重绘

前言 本文总结回流与重绘相关的知识点 回流与重绘的基本概念 重绘&#xff08;Repaint&#xff09;&#xff1a; 当元素样式发生改变&#xff0c;但不影响其几何属性的时候&#xff0c;浏览器只需要重新绘制这个元素&#xff0c;这个过程被称为重绘。 回流&#xff08;Refl…

Linux_监测CPU和内存

通过TOP持续获取进程的CPU和内存消耗&#xff0c;并写入到表格 # 配置进程名 processvm-agent # 配置次数 number100 # 配置间隔时间 time5 # csv结果文件 filecm_$(date %s).csv echo "%CPU,%MEM">${file} pid$(ps -aux | grep ${process} | awk -F {OFS"…

debug\moc\mocinclude.tmp dose not exist

先把jom禁用&#xff0c;然后清理工程&#xff0c;重新编译&#xff0c;编译通过后再重新打开jom

MybatisPlus的主键策略

ASSIGN_ID(默认策略) 生成唯一的值&#xff0c;包含数字&#xff0c;表对应字段类型bigint或者varchar类型 ASSIGN_UUID() 生成唯一的值&#xff0c;包含数字和字母&#xff0c;表对应字段类型varchar类型 AUTO 主键自动增长效果&#xff0c;和表字段auto_increment INPUT …

养猫劝退?猫咪浮毛太多难清理?宠物空气净化器一招搞定

受不了了&#xff0c;真的很想把家里的猫孩子丢出去&#xff01;平日实在是太能掉毛了&#xff0c;赶上换毛季更夸张&#xff0c;家里都要被猫毛淹没了。这些还能靠多加打扫卫生清理掉&#xff0c;可空气中的浮毛真是束手无策。对于我这种过敏性鼻炎患者&#xff0c;一旦空气中…

FSRCNN论文读后感

本文的主要目的是在尽可能保持恢复质量不变的情况下&#xff0c;提高模型的处理速度&#xff0c;以将其投入实际应用。&#xff08;注意&#xff1a;本文只要是针对大尺寸图像&#xff0c;但实验结果证明&#xff0c;FRSNN模型对于小尺寸图像的处理速度也比SRCNN快&#xff0c;…

鸿蒙应用开发之GridRow和GridCol容器

在不同屏幕上布局是一个比较困难的问题,因为屏幕大小不一样,导致内容布局会比较混乱。所以提出一种网络的方式来布局,即使屏幕大小改变了,但是布局行列数不变,那么内容就不会混乱。使用组件GridRow来管理行,使用组件GridCol管理列。 先来看一下组件GridRow的定义: Grid…

VSCode在windows系统下使用conda虚拟环境配置

如何解决CondaError: Run ‘conda init‘ before ‘conda activate‘_condaerror: run conda init before conda activat-CSDN博客 首先检查自己的anaconda是否是添加到整个的环境变量里了 打开cmd如果conda和python都能够识别那么就是配置成功了 然后看插件是否安装&#xf…

在 cPanel 和 WHM 中配置域名重定向

在处理HTTP请求时&#xff0c;服务器会返回页面内容&#xff0c;这一过程依赖于域名和IP地址的正确配置。手动配置IP和域名非常复杂&#xff0c;但cPanel & WHM的网页界面让日常的网络服务器管理变得轻而易举。例如&#xff0c;Hostease提供的服务器解决方案&#xff0c;支…

3DCoat v2023 激活版下载与安装教程 (数字雕刻程序)

前言 3DCoat 是一款数字雕塑软件&#xff0c;由乌克兰开发。该软件专注于游戏模型的细节设计&#xff0c;集三维模型实时纹理绘制和细节雕刻功能为一身&#xff0c;可以加速细节设计流程&#xff0c;在更短的时间内创造出更多的内容。 一、下载地址 下载链接&#xff1a;分享…

想实现ubuntu搭建sqli-labs靶场

目录 首先前期的nginx和php部署完成​编辑​编辑 Xftp导入sqli-labs 遇到了的问题 它提示我们请检查db-creds.inc 去尝试解决这个问题 尝试修改MySQL root密码 修改db-creds.inc配置 再次尝试依旧失败 思考&#xff1a;会不会是MySQL版本过高的原因 重新下载MySQL5.7.…

优思学院|精益管理的指导思想给企业带来了什么启示?

很多企业和管理者以为&#xff0c;多即是好&#xff0c;尽量加快生产&#xff0c;提升库存&#xff0c;库存越多&#xff0c;安全性越高&#xff0c;尽量迫使员工多做工作&#xff0c;他们的工作越多&#xff0c;效率就越高&#xff0c;凡此种种都是在精益思想诞生前的人们对营…