留言墙项目【Vue3 + nodejs + express + mysql】——上

news2024/9/29 19:15:44

创建项目

在这里插入图片描述
如何使用 mddir 命令生成目录结构树

规范文件目录

## 默认目录
|-- undefined
    |-- .gitignore
    |-- babel.config.js
    |-- jsconfig.json
    |-- package.json
    |-- README.md
    |-- vue.config.js
    |-- yarn.lock
    |-- 开发文档.md
    |-- public
    |   |-- favicon.ico
    |   |-- index.html
    |-- src
        |-- App.vue
        |-- main.js
        |-- assets
        |   |-- logo.png
        |-- components
            |-- HelloWorld.vue

## 完善目录
|-- undefined
    |-- .gitignore
    |-- babel.config.js
    |-- directoryList.md
    |-- jsconfig.json
    |-- package.json
    |-- README.md
    |-- vue.config.js
    |-- yarn.lock
    |-- 开发文档.md
    |-- mock/                // 模拟数据
    |-- public/
    |   |-- favicon.ico
    |   |-- index.html
    |-- src/
    |   |-- App.vue
    |   |-- main.js
    |   |-- api/
    |   |-- assets/         // 静态资源目录
    |   |   |-- logo.png
    |   |   |-- icons  		// svg
    |   |   |-- images
    |   |-- components/     // 公共组件目录
    |   |   |-- HelloWorld.vue
    |   |-- router/         // 路由配置目录
    |   |-- store/          // 状态管理目录
    |   |-- styles/         // 公共样式目录
    |   |-- utils/          // 工具函目录
    |   |-- views/          // 页面目录
    |-- static              // 静态资源目录,不会被打包

安装必要插件

yarn add vue-router --save
配置一下路由,显示在页面中
App.vue

<template>
  <router-view />
</template>

views/Home.vue 随便写点文字
router/index.js

import { createRouter, createWebHashHistory } from "vue-router";
const routes = [
  {
    path: "/",
    name: "home",
    component: () => import("../views/Home.vue"),
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;

main.js

import router from "@/router/index";

const app = createApp(App);
app.use(router);
app.mount("#app");

在这里插入图片描述
yarn add vuex@next --save

yarn add less less-loader --save

yarn add axios --save

yarn add vue-axios --save

Vue3 中使用 “vue-axios“

超百个免费api接口,分享给你

main.js

import axios from "axios";
import VueAxios from "vue-axios";

app.use(VueAxios, axios);
app.provide('axios', app.config.globalProperties.axios) 

App.vue


<script setup>
import { onMounted, inject } from "vue";

const axios = inject("axios"); //注入一下不然不能用
onMounted(() => {
  getPhoto();
});
const getPhoto = () => {
  axios.get("https://api.uomg.com/api/rand.qinghua?format=json").then((res) => {
    console.log(res);
  });
};
</script>

在这里插入图片描述

公共样式

vue-cli4中引入全局less变量的方式
styles/commons.less

// --------- Colors -----------
@primary-color: #3873F8;  // 全局主色
@link-color: #1890ff;  // 链接色
@success-color: #229F87;  // 成功色
@warning-color: #F67778;  // 警告色
@error-color: #F35248;  // 错误色

// --------- 中性色 -----------
@gray-0: #202020;
@gray-1: #585858;
@gray-2: #949494;
@gray-9: #F6F6F8;
@gray-10: #ffffff;

// --------- font -----------
@font-12: 12px;
@font-14: 14px;
@font-16: 16px;

// --------- 间距 -----------
@padding-4: 4px;
@padding-8: 8px;
@padding-12: 12px;
@padding-20: 20px;

// 全局控制
body {
    padding: 0;
    margin: 0;
    line-height: 1.5;
    color: @gray-0;
    font-size: @font-14;
    transition: all 0.3s;
    font-family: Avenir, Helvetica, Arial, sans-serif;
}

p {
    padding: 0;
    margin: 0;
}

li {
    list-style: none;
}

img {
    padding: 0;
    margin: 0;
    display: block; // flex布局变成块可能更好
}

a {
    text-decoration: none;
    &:hover {
        text-decoration: underline;
    }
}

input, textarea {
    outline: none;
}

vue.config.js

const { defineConfig } = require("@vue/cli-service");
const { resolve } = require("path");

module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  pluginOptions: {
    "style-resources-loader": {
      preProcessor: "less",
      patterns: [resolve(__dirname, "./src/styles/commons.less")], //引入全局less文件
    },
  },
});

添加字体图标

vue导入图标的3种方式【阿里图标】
vue引用阿里彩色图标(symbol引用)

综合两篇博客所述 我决定使用第三种方式 .svg(第一篇博客中所介绍的)
yarn add svg-sprite-loader

svg放在src/assets/icon/svg目录下
vue.config.js

const { defineConfig } = require("@vue/cli-service");
const path = require("path");

const webpack = require("webpack");
function resolve(dir) {
  return path.join(__dirname, dir);
}

module.exports = defineConfig({
  // eslint-loader 是否在保存的时候检查
  lintOnSave: false,
  // 部署应用包时的基本 URL,用法和 webpack 本身的 output.publicPath 一致
  publicPath: "./",
  // 输出文件目录
  outputDir: "dist",

  // 是否使用包含运行时编译器的 Vue 构建版本
  runtimeCompiler: false,
  // 生产环境是否生成 sourceMap 文件
  productionSourceMap: false,
  // 生成的 HTML 中的 <link rel="stylesheet"> 和 <script> 标签上启用 Subresource Integrity (SRI)
  integrity: false,
  pluginOptions: {
    "style-resources-loader": {
      preProcessor: "less",
      patterns: [path.resolve(__dirname, "./src/styles/commons.less")], //引入全局less文件
    },
  },

  chainWebpack(config) {
    // 设置 svg-sprite-loader
    // config 为 webpack 配置对象
    // config.module 表示创建一个具名规则,以后用来修改规则
    config.module
      // 规则
      .rule("svg")
      // 忽略
      .exclude.add(resolve("src/assets/icons"))
      // 结束
      .end();
    // config.module 表示创建一个具名规则,以后用来修改规则
    config.module
      // 规则
      .rule("icons")
      // 正则,解析 .svg 格式文件
      .test(/\.svg$/)
      // 解析的文件
      .include.add(resolve("src/assets/icons"))
      // 结束
      .end()
      // 新增了一个解析的loader
      .use("svg-sprite-loader")
      // 具体的loader
      .loader("svg-sprite-loader")
      // loader 的配置
      .options({
        symbolId: "icon-[name]",
      })
      // 结束
      .end();
    config
      .plugin("ignore")
      .use(
        new webpack.ContextReplacementPlugin(/moment[/\\]locale$/, /zh-cn$/)
      );
    config.module
      .rule("icons")
      .test(/\.svg$/)
      .include.add(resolve("src/assets/icons"))
      .end()
      .use("svg-sprite-loader")
      .loader("svg-sprite-loader")
      .options({
        symbolId: "icon-[name]",
      })
      .end();
  },
});


components/SvgIcon.vue

<template>
  <svg class="svg-icon" aria-hidden="true">
    <use :xlink:href="iconName"></use>
  </svg>
</template>

<script setup>
import { computed } from "vue";
const props = defineProps({
  icon: {
    type: String,
    required: true,
  },
});

const iconName = computed(() => {
  return `#icon-${props.icon}`;
});
</script>

<style lang="less" scoped>
.svg-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
</style>

assets/icons/index.js

import SvgIcon from "@/components/SvgIcon.vue";

const svgRequired = require.context("./svg", false, /\.svg$/);
svgRequired.keys().forEach((item) => svgRequired(item));

export default (app) => {
  app.component("svg-icon", SvgIcon);
};

main.js

import SvgIcon from "@/assets/icons/index";
SvgIcon(app);

使用

<svg-icon icon="success"></svg-icon>

页面逻辑梳理

在这里插入图片描述
因为 考虑到要适配移动端,这里在之前的home组件下,在弄WallMessage.vue
修改路由

import { createRouter, createWebHashHistory } from "vue-router";
const routes = [
  {
    path: "/",
    redirect: "/wall",
    name: "home",
    component: () => import("../views/Home.vue"),
    children: [
      {
        path: "wall",
        component: () => import("../views/WallMessage.vue"),
      },
    ],
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;

搭建TopBar

App.vue

<template>
  <router-view />
</template>

<script setup></script>

<style lang="less"></style>

Home.vue

<template>
  <div class="wall-home">
    <top-bar></top-bar>
    <!-- <video
      src="@/assets/images/qm1.mp4"
      loop="loop"
      autoplay="autoplay"
      muted="muted"
      class="bg-video"
    ></video> -->
    <router-view></router-view>
  </div>
</template>

<script setup>
import topBar from "@/components/TopBar.vue";
</script>

<style lang="less" scoped>
.wall-home {
  .bg-video {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    height: 800px;
  }
}
</style>

TopBar.vue

<template>
  <div class="top-bar">
    <div class="logo">
      <img src="@/assets/images/logo.svg" class="logo-img" />
      <p class="logo-name">苦甲子</p>
    </div>
    <div class="menu"></div>
    <div class="user">
      <div class="user-head"></div>
    </div>
  </div>
</template>

<script setup></script>

<style lang="less" scoped>
.top-bar {
  width: 100%;
  height: 52px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.1);
  // 毛玻璃效果
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  box-sizing: border-box;

  .logo {
    display: flex;
    align-items: center;
    width: 200px;

    .logo-name {
      font-size: 20px;
      color: @gray-0;
      font-weight: 600px;
      padding-left: 10px;
    }
  }

  .user {
    width: 200px;
    .user-head {
      float: right;
      border-radius: 50%;
      height: 36px;
      width: 36px;
      background-image: linear-gradient(180deg, #7be7ff, #1e85e2);
    }
  }
}
</style>

实现效果:
在这里插入图片描述

按钮组件

写按钮组件 不用任何ui框架 Button.vue

<template>
  <button :class="[size, state]" class="button"><slot></slot></button>
</template>

<script setup>
const props = defineProps({
  size: {
    default: "base",
  },
  state: {
    default: "primary",
  },
});
</script>

<style lang="less" scoped>
.button {
  text-align: center;
  border: none;
}

// size
.max {
  min-width: 100px;
  height: 48px;
  border-radius: 24px;
  padding: 0 24px;
}

.base {
  min-width: 80px;
  height: 36px;
  border-radius: 24px;
  padding: 0 20px;
}

.small {
  min-width: 72px;
  height: 32px;
  border-radius: 24px;
  padding: 0 20px;
}

// state 是否选中 主次按钮
.primary {
  background-color: @gray-0;
  color: @gray-10;
}
.secondary {
  background-color: @gray-10;
  color: @gray-1;
  border: 1px solid @gray-0;
}

.cprimary {
  background-color: @primary-color;
  color: @gray-10;
  font-weight: 600;
}
.csecondary {
  background-color: @gray-10;
  color: @gray-0;
}
</style>

TopBar.vue中使用

<div class="menu">
  <button-vue class="menu-message" state="primary">留言墙</button-vue>
  <button-vue class="menu-photo" state="secondary">照片墙</button-vue>
</div>

在这里插入图片描述在这里插入图片描述

底部组件

FooterBar.vue

<template>
  <div class="footer">
    <div class="footer-container">
      <div class="footer-left">
        <div class="logo">
          <img src="@/assets/images/logo.svg" class="logo-img" />
          <p class="logo-name">苦甲子</p>
        </div>

        <p class="top-p">
          该留言墙是为了巩固知识,出现的产物,便于用户交流的留言平台
        </p>
        <p class="top-p">
          用户将留言便签贴在留言墙上,用户可以自定义便签颜色和内容属性,不仅可以用于交流,也是一场记录
        </p>

        <p class="state">
          <span>声明</span><span>备案/许可证豫ICP备12345678号</span><span>网站备案/许可证豫ICP备12345678号-1</span>
        </p>
      </div>

      <div class="link">
        <p class="title">链接</p>
        <div class="link-inner">
          <a href="javascript:;" target="_blank" class="link-name">苦甲子</a>
          <a href="javascript:;" target="_blank" class="link-name">博客</a>
        </div>
      </div>

      <div class="footer-right">
        <p class="title">打赏</p>
        <div class="right-inner">
          <div>
            <img src="@/assets/images/weixin.png" />
            <p class="ds-title">微信支付</p>
          </div>
          <div>
            <img src="@/assets/images/zhifubao.jpg" />
            <p class="ds-title">支付宝支付</p>
          </div>
        </div>

      </div>
    </div>
  </div>
</template>

<script setup></script>

<style lang="less" scoped>
.footer {
  width: 100%;
  height: 200px;
  background-color: @gray-0;
  padding: 20px;
  box-sizing: border-box;

  .footer-container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;

    p {
      color: rgba(255, 255, 255, 0.5);
    }
  }

  .footer-left {
    .logo {
      display: flex;
      align-items: center;
      margin-bottom: 24px;

      .logo-name {
        font-size: 20px;
        color: @gray-10;
        font-weight: 600px;
        padding-left: 10px;
      }
    }

    .top-p {
      font-size: @font-12;
      padding-bottom: 4px;
      width: 400px;
    }

    .state {
      font-size: @font-12;
      padding-top: 26px;

      span {
        padding-right: 20px;
      }
    }

  }


  .title {
    font-size: @font-16;
    padding-bottom: 12px;
  }

  .link {
    padding: 0 50px;
    flex: 1;

    .link-inner {
      a {
        color: rgba(255, 255, 255, 0.5);
        padding-right: 20px;
      }
    }
  }

  .footer-right {


    .right-inner {
      display: flex;

      img {
        width: 100px;
        height: 100px;
        padding-right: 40px;
      }

      .ds-title {
        font-size: @font-12;
        padding-top: 8px;
      }
    }
  }

}
</style>

在这里插入图片描述

主页面的搭建

WallMessage.vue
主页面分为留言墙和照片墙
将页面中的文字记录在util/data.js

// 墙的性质
export const wallType = [
  {
    name: "留言墙",
    slogan: "很多事情值得记录,当然也值得回味。",
  },
  {
    name: "照片墙",
    slogan: "很多事情值得记录,当然也值得回味。",
  },
];

// 分类标签
export const label = [
  [
    "留言",
    "目标",
    "理想",
    "过去",
    "将来",
    "爱情",
    "亲情",
    "秘密",
    "信条",
    "无题",
  ],
  [
    "我",
    "ta",
    "喜欢的",
    "有意义的",
    "值得纪念的",
    "母校",
    "生活",
    "天空",
    "我在的城市",
    "大海",
  ],
];

<template>
  <div class="wall-message">
    <p class="title">{{wallType[id].name}}</p>
    <p class="slogan">{{wallType[id].slogan}}</p>

    <div class="label">
      <p class="label-list " :class="{lbselected: nlabel == -1}" @click="selectNode(-1)">全部</p>
      <p class="label-list" :class="{lbselected: nlabel == index}" v-for="(item, index) in label[id]" :key="index"
        @click="selectNode(index)">
        {{item}}</p>
    </div>
  </div>

</template>

<script setup>
import { wallType, label } from '@/utils/data';
import { ref } from 'vue'
// 留言墙与照片墙的切换id
let id = ref(0)
let nlabel = ref(-1) // 当前对应的标签

// 切换label
const selectNode = (e) => {
  nlabel.value = e;
}

</script>

<style lang="less" scoped>
.wall-message {
  min-height: 600px;
  padding-top: 52px;

  .title {
    padding-top: 48px;
    padding-bottom: @padding-8;
    font-size: 56px;
    color: @gray-0;
    text-align: center;
    font-weight: 600;
  }

  .slogan {
    color: @gray-2;
    text-align: center;
  }

  .label {
    display: flex;
    justify-content: center;
    margin-top: 40px;

    .label-list {
      padding: 0 14px;
      height: 30px;
      display: flex;
      align-items: center;
      margin: @padding-4;
      color: @gray-2;
      box-sizing: border-box;
    }

    .lbselected {
      color: @gray-0;
      font-weight: 600;
      border: 1px solid @gray-0;
      border-radius: 14px;
    }

  }
}
</style>

请添加图片描述

创建note卡片

NoteCard.vue
在这里插入图片描述

<template>
    <div class="note-card" :style="{width: width, background:background}">
        <!-- 上 -->
        <div class="top">
            <p class="time">2022.11.04</p>
            <p class="label">留言</p>
        </div>
        <!-- 中 -->
        <p class="message">
            这是一段暖心的话,它或许不长,但是它是我现在最想说的。放在这里就留一个纪念吧,不用回头看,应为现在才是当下最好的。这是一段暖心的话,它或许不长,但是它是我现在最想说的。放在这里就留一个纪念吧。
        </p>
        <!-- 下 -->
        <div class="footer">
            <div class="footer-left">
                <div class="love">
                    <svg-icon icon="love"></svg-icon><span>3</span>
                </div>
                <div class="notes">
                    <svg-icon icon="notes"></svg-icon><span>3</span>
                </div>
            </div>
            <div class="name">小张</div>
        </div>

    </div>
</template>

<script setup>
const props = defineProps({
    width: {
        default: '288px'
    },
    background: {
        default: 'rgba(146, 230, 245, 0.30)'
    }
})
</script>

<style lang="less" scoped>
@font-face {
    font-family: fa;
    src: url("@/assets/fonts/fangzheng.ttf")
}

.note-card {
    // width: 288px;
    height: 240px;
    // background: rgba(146, 230, 245, 0.30);
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 10px 20px;
    box-sizing: border-box;

    .top {
        display: flex;
        justify-content: space-between;
        padding-bottom: 26px;

        p {
            font-size: 12px;
            color: @gray-2;
        }
    }

    .message {
        // width: 248px;
        height: 140px;
        font-family: fa;
        font-size: 14px;
        color: @gray-0;
        cursor: pointer;
    }

    .footer {
        display: flex;
        justify-content: space-between;
        padding-top: 10px;
        padding-bottom: 36px;
        font-size: 14px;
        color: @gray-2;

        .footer-left {
            display: flex;

            .svg-icon {
                color: @gray-2;
                padding-right: @padding-4;
            }

            .love {
                padding-right: @padding-8;

                .svg-icon {
                    cursor: pointer;
                    transition: @tr;

                    &:hover {
                        color: @like;
                    }
                }
            }
        }

        .name {
            font-family: fa;
            font-size: 16px;
            color: @gray-0;
            font-weight: 500;
        }


    }
}
</style>

创建mock数据以及使用

yarn add mockjs --save
mock/index.js

let Mock = require("mockjs");

// 留言note
export const note = Mock.mock({
  "data|19": [
    {
      // 创建时间
      moment: new Date(),
      // id
      "id|+1": 1,
      // userid
      "userId|+1": 10,
      // 内容
      "message|24-96": "@cword",
      // 标签label
      "label|0-10": 0,
      // name
      name: "@cname",
      // like
      "like|0-120": 0,
      // 评论
      "comment|0-120": 0,
      // 背景颜色
      "imgurl|0-4": 0,
      // 是否撤销
      "revoke|0-20": 0,
      // 是否举报
      "report|0-20": 0,
      //   类型
      type: 0,
    },
  ],
});
![请添加图片描述](https://img-blog.csdnimg.cn/fdf30a5caf3c42f884118291c0f8831a.gif)

卡片居中方法以及时间方法

在组合式API中,如果想在子组件中用其它变量接收props的值时需要使用toRef将props中的属性转为响应式。

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

时间&颜色

util/tools.js

// 时间方法
export const dateOne = (e) => {
  let d = new Date(e);
  let year = d.getFullYear();
  let month = d.getMonth() + 1;
  let day = d.getDate();
  if (day < 10) day = "0" + day;
  if (month < 10) month = "0" + month;
  return year + "." + month + "." + day;
};

// 卡片背景色
export const cardColor = [
  "rgba(252,175,162,0.30)",
  "rgba(255,227,148,0.30)",
  "rgba(146,230,245,0.30)",
  "rgba(168,237,138,0.31)",
  "rgba(202,167,247,0.30)",
  "rgba(212,212,212,0.30)",
];

NoteCard.vue

<template>
    <div class="note-card" :style="{width: width, background:cardColor[card.imgurl]}">
        <!-- 上 -->
        <div class="top">
            <p class="time">{{dateOne(card.moment)}}</p>
            <p class="label">{{label[card.type][card.label]}}</p>
        </div>
        <!-- 中 -->
        <p class="message">
            {{card.message}}
        </p>
        <!-- 下 -->
        <div class="footer">
            <div class="footer-left">
                <div class="love">
                    <svg-icon icon="love"></svg-icon><span>{{card.like}}</span>
                </div>
                <div class="notes">
                    <svg-icon icon="notes"></svg-icon><span>{{card.comment}}</span>
                </div>
            </div>
            <div class="name">{{card.name}}</div>
        </div>

    </div>
</template>

<script setup>
import { computed, onMounted, toRef } from 'vue';
import { label } from '@/utils/data';
import { dateOne, cardColor } from '@/utils/tools'
const props = defineProps({
    width: {
        default: '100%'
    },

    note: {
        default: {}
    }
})
const note = toRef(props, 'note')

const card = computed(() => {
    return note.value
})

onMounted(() => {
    // console.log(note)
    console.log(note.value)
    console.log('card', card.value)
    // console.log(card.value._object)
})
</script>

<style lang="less" scoped>
@font-face {
    font-family: fa;
    src: url("@/assets/fonts/fangzheng.ttf")
}

.note-card {
    // width: 288px;
    height: 240px;
    // background: rgba(146, 230, 245, 0.30);
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
    // margin: 20px;
    padding: 10px 20px;
    box-sizing: border-box;
    // margin-left: 8px;
    // margin-bottom: 8px;

    .top {
        display: flex;
        justify-content: space-between;
        padding-bottom: 26px;

        p {
            font-size: 12px;
            color: @gray-2;
        }
    }

    .message {
        // width: 248px;
        height: 140px;
        font-family: fa;
        font-size: 14px;
        color: @gray-0;
        cursor: pointer;
    }

    .footer {
        display: flex;
        justify-content: space-between;
        padding-top: 10px;
        padding-bottom: 36px;
        font-size: 14px;
        color: @gray-2;

        .footer-left {
            display: flex;

            .svg-icon {
                color: @gray-2;
                padding-right: @padding-4;
            }

            .love {
                padding-right: @padding-8;

                .svg-icon {
                    cursor: pointer;
                    transition: @tr;

                    &:hover {
                        color: @like;
                    }
                }
            }
        }

        .name {
            font-family: fa;
            font-size: 16px;
            color: @gray-0;
            font-weight: 500;
        }


    }
}
</style>

添加留言按钮请添加图片描述

增加弹出层组件

请添加图片描述

优化弹出层组件

vue中改变滚动条样式(CSS)

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

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

相关文章

[激光原理与应用-29]:典型激光器 -1- 固体激光器

目录 第1章 什么是固体激光器 1.1 什么是固体激光器 1.2 固体激光器特点 1.3 特性 1.4 分类 1.5 波长 第2章 固体激光器的组成 2.1 固体工作物质 2.2 激励源 第1章 什么是固体激光器 1.1 什么是固体激光器 用固体激光材料作为工作介质的激光器。 固体激光材料是在作…

老杨说运维 | 想转型的请注意!这几点不容忽视

随着各行各业数字化转型的持续推进&#xff0c;以及信息化建设的不断深入&#xff0c;IT系统规模及复杂程度日趋增长。据IDC预测&#xff0c;2021年中国金融行业IT支出规模&#xff08;包括&#xff1a;软件、硬件、IT服务等&#xff09;达到2186.02亿元&#xff0c;到2025年将…

Go-Excelize API源码阅读(三十九)——SetCellHyperLink

Go-Excelize API源码阅读&#xff08;三十九&#xff09;——SetCellHyperLink 开源摘星计划&#xff08;WeOpen Star&#xff09; 是由腾源会 2022 年推出的全新项目&#xff0c;旨在为开源人提供成长激励&#xff0c;为开源项目提供成长支持&#xff0c;助力开发者更好地了解…

Mysql存储过程和游标的一点理解

最近学习数据库语言sql&#xff0c;学到了存储过程和游标这一块&#xff0c;上课一点没听&#xff0c;可以说是全程懵逼。不过好在有个课后的实验&#xff0c;然而cmd中的报错往往极其粗糙&#xff0c;只会告诉你什么附近有错&#xff08;有时候还是错的&#xff09;&#xff0…

大一新生HTML期末作业 个人旅游图片博客HTML5 用DIV+CSS技术设计的个人网站(web前端网页制作课作业)

&#x1f389;精彩专栏推荐&#x1f447;&#x1f3fb;&#x1f447;&#x1f3fb;&#x1f447;&#x1f3fb; ✍️ 作者简介: 一个热爱把逻辑思维转变为代码的技术博主 &#x1f482; 作者主页: 【主页——&#x1f680;获取更多优质源码】 &#x1f393; web前端期末大作业…

Centos7安装部署openLDAP并springboot集成openLDAP

这里安装部署都是基于docker的&#xff0c;供参考 安装docker 1、yum list docker 2、yum install -y yum-utils device-mapper-persistent-data lvm2 3、yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo 4、yum install do…

斐波那契数列的矩阵乘法方法

1、求斐波那契数列矩阵乘法的方法 1.1 斐波那契数列的线性求解&#xff08;O(n)O(n)O(n)&#xff09;的方法 //斐波那契数列&#xff1a;1 1 2 3 5 8 ... int fibonacci(int n) {if (n < 1) return 0;if (n 1 || n 2) return 1;int a 1, b 1, c 0;for (int i 3; i &…

K_A08_002 基于 STM32等单片机驱动MAX1508模块按键控制直流电机正反转加减速启停

目录 一、资源说明 二、基本参数 1、参数 2、引脚说明 3、驱动说明 MAX1508模块驱动时序 对应程序: PWM信号 四、部分代码说明 接线说明 1、STC89C52RCMAX1508模块 2、STM32F103C8T6MAX1508模块 五、基础知识学习与相关资料下载 六、视频效果展示与程序资料获取 七、项目…

[附源码]计算机毕业设计springboot校园生活服务平台

项目运行 环境配置&#xff1a; Jdk1.8 Tomcat7.0 Mysql HBuilderX&#xff08;Webstorm也行&#xff09; Eclispe&#xff08;IntelliJ IDEA,Eclispe,MyEclispe,Sts都支持&#xff09;。 项目技术&#xff1a; SSM mybatis Maven Vue 等等组成&#xff0c;B/S模式 M…

PowerBI工作区连接Log Aanlytics

其实在2021.6月的时候微软已经更新了该功能&#xff0c;通过PowerBI高级容量工作区连接Log Analytics工作区&#xff0c;从而分析历史活动数据。并且在应用市场创建了一个模板应用方便分析日志数据。使用该模板可以&#xff1a; • 观察历史使用趋势 • 按照范围、容量、数据集…

常用通讯电平转换电路整理

常用通讯电平转换电路整理5V转3.3V 当5V端信号为低电平时&#xff0c;R4不导通&#xff0c;Q5基极高电平&#xff0c;Q5导通&#xff0c;Q5的集电极被拉低&#xff0c;3.3V端被拉低。R6在Q5导通时起到限流作用。 优势&#xff1a; 便宜&#xff1a;三极管容易常见并且容易采购&…

LOLBins免杀技术研究及样本分析

一、前言 自病毒木马诞生起&#xff0c;杀毒软件与病毒木马的斗争一直都没有停止过。从特征码查杀&#xff0c;到现在的人工智能查杀&#xff0c;杀毒软件的查杀技术也是越来越复杂。但是病毒木马却仍然层出不&#xff0c;这是因为大部分病毒木马使用了免杀技术。 免杀技术全称…

2023最新SSM计算机毕业设计选题大全(附源码+LW)之java高校教师工作量的核算的设计与实现g6ipj

大学计算机专业毕业的&#xff0c;实际上到了毕业的时候&#xff0c;基本属于会与不会之间。说会&#xff0c;是因为学了整套的理论和方法&#xff0c;就是所谓的科班出身。说不会&#xff0c;是因为实践能力极差。 不会的问题&#xff0c;集中体现在毕设的时候&#xff0c;系…

2023年天津天狮学院专升本市场营销专业《市场营销学》考试大纲

2023年天津天狮学院高职升本市场营销专业入学考试《市场营销学》考试大纲一、考试性质 《市场营销学》专业课程考试是天津天狮学院市场营销专业高职升本入学考试的必考科目之一&#xff0c;其性质是考核学生是否达到了升入本科继续学习的要求而进行的选拔性考试。《市场营销学》…

【图像分割】DeepLabV3+

文章目录0. 介绍1. DeepLabV32. 结论3. 参考0. 介绍 DeepLabV3文章&#xff1a;https://arxiv.org/pdf/1802.02611.pdf DeepLabV3代码&#xff1a;https://github.com/VainF/DeepLabV3Plus-Pytorch 语义分割的两个主要问题&#xff1a; 物体的多尺度问题。多次下采样会造成特…

ABAP 计算时间差

源码 FUNCTION zfm_date_difference. *“---------------------------------------------------------------------- "“本地接口&#xff1a; *” IMPORTING *” VALUE(IV_DATE_BEG) TYPE SY-DATUM *" VALUE(IV_TIME_BEG) TYPE SY-UZEIT *" VALUE(IV_DATE_END)…

【赛后总结】第十三届服务外包创新创业大赛总结——A14

目录前言组队&#xff06;选题分工&项目推进提交材料&项目答辩区域赛初赛区域赛决赛全国总决赛写在最后前言 先摆两个参赛视频 初赛视频 决赛视频 比赛已经过去几个月了&#xff0c;也算是想起来这个比赛可以写一个总结了。在历时8个月左右的时间之后&#xff0c;我们…

香菇多糖-四甲基罗丹明 Lentinan-TRITC 四甲基罗丹明-PEG-香菇多糖

香菇多糖-四甲基罗丹明 Lentinan-TRITC 四甲基罗丹明-PEG-香菇多糖 中文名称&#xff1a;香菇多糖-四甲基罗丹明 英文名称&#xff1a;Lentinan-TRITC 别称&#xff1a;生物素修饰香菇多糖&#xff0c;生物素-香菇多糖 香菇多糖-聚乙二醇-四甲基罗丹明 TRITC-PEG-Lent…

[附源码]计算机毕业设计JAVA校园新闻管理系统

[附源码]计算机毕业设计JAVA校园新闻管理系统 项目运行 环境配置&#xff1a; Jdk1.8 Tomcat7.0 Mysql HBuilderX&#xff08;Webstorm也行&#xff09; Eclispe&#xff08;IntelliJ IDEA,Eclispe,MyEclispe,Sts都支持&#xff09;。 项目技术&#xff1a; SSM mybati…

带你走进脚本世界,ijkplayer之【init-ios.sh】脚本分析

前言 集成ijkplayer&#xff0c;需要执行脚本init-ios.sh&#xff0c;那么init-ios.sh脚本干嘛用的了,花了半天时间&#xff0c;学习了下shell脚本&#xff0c;感觉脚本语言学起来还是比较容易上手的&#xff0c;现在仅仅能看懂了&#xff0c;但是要自己写&#xff0c;还需要花…