网站首页菜单两种布局vue+elementui顶部和左侧栏导航

  1. 顶部菜单实现

<!DOCTYPE html>
<html lang="zh-CN">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Vue.js + Element UI 路由导航</title><!-- 引入Element UI样式 --><link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css"><style>* {margin: 0;padding: 0;box-sizing: border-box;}body {font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', Arial, sans-serif;background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);min-height: 100vh;padding: 20px;}.container {max-width: 1200px;margin: 0 auto;background-color: white;border-radius: 10px;box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);overflow: hidden;}header {background: linear-gradient(90deg, #1e5799 0%, #207cca 51%, #2989d8 100%);color: white;padding: 20px;text-align: center;}header h1 {font-size: 2.2rem;margin-bottom: 10px;}header p {font-size: 1.1rem;opacity: 0.9;}.content {padding: 30px;}.dashboard {display: grid;grid-template-columns: 1fr 3fr;gap: 30px;margin-top: 20px;}.card {background: white;border-radius: 8px;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);padding: 25px;margin-bottom: 25px;}.card h2 {color: #2c3e50;margin-bottom: 15px;padding-bottom: 10px;border-bottom: 1px solid #eee;}.features {display: grid;grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));gap: 20px;margin-top: 20px;}.feature-card {background: #f8f9fa;border-radius: 8px;padding: 20px;transition: all 0.3s ease;border-left: 4px solid #409EFF;}.feature-card:hover {transform: translateY(-5px);box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);}.feature-card h3 {color: #1e5799;margin-bottom: 10px;}.page-content {min-height: 400px;display: flex;flex-direction: column;justify-content: center;align-items: center;background: #f8fafc;border-radius: 8px;padding: 40px;text-align: center;}.page-content h2 {font-size: 2.5rem;color: #2c3e50;margin-bottom: 20px;}.page-content p {font-size: 1.2rem;color: #5a6a7f;max-width: 700px;line-height: 1.8;}.el-menu-demo {box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);}footer {text-align: center;padding: 25px;color: #7f8c8d;border-top: 1px solid #eee;margin-top: 30px;}.router-link-active {text-decoration: none;}a {text-decoration: none;color: inherit;}.el-menu-item [class^=el-icon-] {vertical-align: middle;margin-right: 5px;width: 24px;text-align: center;font-size: 18px;}.el-submenu [class^=el-icon-] {vertical-align: middle;margin-right: 5px;width: 24px;text-align: center;font-size: 18px;}.el-menu-item.is-active {background-color: #1e5799 !important;}</style>
</head>
<body><div id="app"><div class="container"><div class="content"><!-- 导航菜单 --><el-menu:default-active="activeIndex"class="el-menu-demo"mode="horizontal"@select="handleSelect"background-color="#545c64"text-color="#fff"active-text-color="#ffd04b"><el-menu-item index="/dashboard"><i class="el-icon-s-home"></i><span>控制面板</span></el-menu-item><el-submenu index="workspace"><template slot="title"><i class="el-icon-s-platform"></i><span>工作空间</span></template><el-menu-item index="/projects">项目管理</el-menu-item><el-menu-item index="/tasks">任务管理</el-menu-item><el-menu-item index="/calendar">日历视图</el-menu-item><el-submenu index="reports"><template slot="title">报表统计</template><el-menu-item index="/reports/weekly">周报</el-menu-item><el-menu-item index="/reports/monthly">月报</el-menu-item><el-menu-item index="/reports/custom">自定义报表</el-menu-item></el-submenu></el-submenu><el-menu-item index="/messages"><i class="el-icon-message"></i><span>消息中心</span></el-menu-item><el-menu-item index="/settings"><i class="el-icon-setting"></i><span>系统设置</span></el-menu-item><el-menu-item index="https://element.eleme.io" target="_blank"><i class="el-icon-link"></i><span>Element UI 文档</span></el-menu-item></el-menu><!-- 路由出口 --><router-view></router-view></div><footer><p>© 2023 Vue.js + Element UI 导航系统 | 修复路由配置示例</p></footer></div></div><!-- 引入Vue.js --><script src="https://unpkg.com/vue@2/dist/vue.js"></script><!-- 引入Vue Router --><script src="https://unpkg.com/vue-router@3/dist/vue-router.js"></script><!-- 引入Element UI --><script src="https://unpkg.com/element-ui/lib/index.js"></script><script>// 定义路由组件const Dashboard = { template: `<div class="page-content"><h2>控制面板</h2><p>欢迎使用系统控制面板。在这里您可以查看系统概览、管理项目、跟踪任务和访问各种工具。</p><p>使用左侧菜单导航到不同功能模块,或使用顶部菜单访问主要功能区域。</p><el-button type="primary" size="medium" style="margin-top: 20px;">开始使用</el-button></div>`};const Projects = { template: `<div class="page-content"><h2>项目管理</h2><p>在这里您可以创建新项目、管理现有项目、分配任务给团队成员并跟踪项目进度。</p><p>使用卡片视图、列表视图或甘特图查看项目状态。</p></div>`};const Tasks = { template: `<div class="page-content"><h2>任务管理</h2><p>查看和分配任务,设置优先级和截止日期,跟踪任务完成情况。</p><p>使用看板视图直观地管理任务状态:待处理、进行中、已完成。</p></div>`};const Calendar = { template: `<div class="page-content"><h2>日历管理</h2><p>查看日历,设置优先级和截止日期。</p></div>`};const Messages = { template: `<div class="page-content"><h2>消息中心</h2><p>查看系统通知、团队消息和项目更新。与团队成员保持沟通。</p><p>您可以在这里发送和接收消息,设置消息提醒和通知偏好。</p></div>`};const Settings = { template: `<div class="page-content"><h2>系统设置</h2><p>配置系统参数、用户权限、界面主题和其他个性化选项。</p><p>管理团队成员、设置角色权限和配置系统集成。</p></div>`};const Reports = { template: `<div class="page-content"><h2>报表统计</h2><p>生成和查看各种报表,包括项目进度、团队绩效和资源使用情况。</p><p>自定义报表模板,设置自动生成和发送报表的时间表。</p></div>`};// 定义路由const routes = [{ path: '/', redirect: '/dashboard' },{ path: '/dashboard', component: Dashboard },{ path: '/projects', component: Projects },{ path: '/calendar', component: Calendar },{ path: '/tasks', component: Tasks },{ path: '/messages', component: Messages },{ path: '/settings', component: Settings },{ path: '/reports', component: Reports },{ path: '/reports/weekly', component: Reports },{ path: '/reports/monthly', component: Reports },{ path: '/reports/custom', component: Reports }];// 创建路由实例const router = new VueRouter({routes});// 创建Vue实例new Vue({el: '#app',router,data() {return {activeIndex: '/dashboard'}},mounted() {// 设置当前激活菜单项this.activeIndex = this.$route.path;},watch: {// 当路由变化时更新激活菜单项'$route'(to) {this.activeIndex = to.path;}},methods: {handleSelect(key) {// 处理菜单选择if (key.startsWith('http')) {// 外部链接,在新标签页打开window.open(key, '_blank');} else {// 内部路由导航this.$router.push(key);}}}});</script>
</body>
</html>

2 左侧边栏菜单布局

<!DOCTYPE html>
<html lang="zh-CN">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Vue.js + Element UI 侧边栏导航</title><!-- 引入Element UI样式 --><link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css"><style>* {margin: 0;padding: 0;box-sizing: border-box;}body {font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', Arial, sans-serif;background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);min-height: 100vh;padding: 20px;}.container {max-width: 1400px;margin: 0 auto;background-color: white;border-radius: 10px;box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);overflow: hidden;display: flex;flex-direction: column;min-height: 90vh;}header {background: linear-gradient(90deg, #1e5799 0%, #207cca 51%, #2989d8 100%);color: white;padding: 20px;text-align: center;}header h1 {font-size: 2.2rem;margin-bottom: 10px;}header p {font-size: 1.1rem;opacity: 0.9;}.main-content {display: flex;flex: 1;}/* 侧边栏样式 */.sidebar {width: 250px;background: #fff;border-right: 1px solid #e6e6e6;box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);transition: all 0.3s ease;overflow: hidden;}.sidebar .el-menu {border-right: none;height: 100%;}.sidebar .el-submenu .el-menu-item {min-width: auto;padding-left: 50px !important;}.sidebar .el-menu-item,.sidebar .el-submenu__title {height: 50px;line-height: 50px;}.sidebar .el-menu-item [class^=el-icon-] {margin-right: 10px;font-size: 18px;}.sidebar .el-submenu [class^=el-icon-] {margin-right: 10px;font-size: 18px;}.sidebar .el-menu-item.is-active {background-color: #ecf5ff !important;color: #1e5799 !important;font-weight: bold;border-left: 4px solid #1e5799;}.sidebar .el-menu-item:hover,.sidebar .el-submenu__title:hover {background-color: #f5f7fa !important;}.sidebar .el-submenu__title i {color: #1e5799;}/* 内容区域样式 */.content {flex: 1;padding: 30px;background: #f8fafc;overflow-y: auto;}.dashboard {display: grid;grid-template-columns: 1fr 3fr;gap: 30px;margin-top: 20px;}.card {background: white;border-radius: 8px;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);padding: 25px;margin-bottom: 25px;}.card h2 {color: #2c3e50;margin-bottom: 15px;padding-bottom: 10px;border-bottom: 1px solid #eee;}.features {display: grid;grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));gap: 20px;margin-top: 20px;}.feature-card {background: #f8f9fa;border-radius: 8px;padding: 20px;transition: all 0.3s ease;border-left: 4px solid #409EFF;}.feature-card:hover {transform: translateY(-5px);box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);}.feature-card h3 {color: #1e5799;margin-bottom: 10px;}.page-content {min-height: 400px;display: flex;flex-direction: column;justify-content: center;align-items: center;background: white;border-radius: 8px;padding: 40px;text-align: center;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);}.page-content h2 {font-size: 2.5rem;color: #2c3e50;margin-bottom: 20px;}.page-content p {font-size: 1.2rem;color: #5a6a7f;max-width: 700px;line-height: 1.8;}footer {text-align: center;padding: 25px;color: #7f8c8d;border-top: 1px solid #eee;margin-top: auto;}.router-link-active {text-decoration: none;}a {text-decoration: none;color: inherit;}.logo {padding: 20px;text-align: center;border-bottom: 1px solid #eee;}.logo h2 {color: #1e5799;font-size: 1.5rem;}.logo p {color: #7f8c8d;font-size: 0.9rem;}.user-info {padding: 20px;display: flex;align-items: center;border-bottom: 1px solid #eee;}.user-info .avatar {width: 50px;height: 50px;border-radius: 50%;background: #1e5799;color: white;display: flex;align-items: center;justify-content: center;font-size: 1.5rem;margin-right: 15px;}.user-info .details {flex: 1;}.user-info .name {font-weight: bold;color: #2c3e50;}.user-info .role {color: #7f8c8d;font-size: 0.9rem;}.mobile-toggle {display: none;position: absolute;top: 20px;left: 20px;z-index: 1000;background: #1e5799;color: white;border: none;border-radius: 4px;padding: 8px 12px;cursor: pointer;}@media (max-width: 992px) {.sidebar {position: fixed;left: -250px;top: 0;bottom: 0;z-index: 100;transition: all 0.3s ease;}.sidebar.active {left: 0;box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);}.mobile-toggle {display: block;}.content {padding: 20px;}.page-content {padding: 20px;}.page-content h2 {font-size: 1.8rem;}}.stat-cards {display: grid;grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));gap: 20px;margin-bottom: 30px;}.stat-card {background: white;border-radius: 8px;padding: 20px;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);text-align: center;border-top: 4px solid #1e5799;}.stat-card .value {font-size: 2rem;font-weight: bold;color: #1e5799;margin: 10px 0;}.stat-card .label {color: #7f8c8d;font-size: 0.9rem;}</style>
</head>
<body><div id="app"><div class="container"><header><h1>Vue.js + Element UI 导航系统</h1><p>侧边栏导航布局 - 专业管理系统</p></header><button class="mobile-toggle" @click="toggleSidebar"><i class="el-icon-menu"></i></button><div class="main-content"><!-- 侧边栏导航 --><div class="sidebar" :class="{ active: sidebarActive }"><div class="logo"><h2>管理系统</h2><p>Vue.js + Element UI</p></div><div class="user-info"><div class="avatar"><i class="el-icon-user"></i></div><div class="details"><div class="name">管理员</div><div class="role">系统管理员</div></div></div><el-menu:default-active="activeIndex"class="el-menu-vertical-demo"@select="handleSelect"background-color="#fff"text-color="#2c3e50"active-text-color="#1e5799"><el-menu-item index="/dashboard"><i class="el-icon-s-home"></i><span>控制面板</span></el-menu-item><el-submenu index="workspace"><template slot="title"><i class="el-icon-s-platform"></i><span>工作空间</span></template><el-menu-item index="/projects">项目管理</el-menu-item><el-menu-item index="/tasks">任务管理</el-menu-item><el-menu-item index="/calendar">日历视图</el-menu-item><el-submenu index="reports"><template slot="title">报表统计</template><el-menu-item index="/reports/weekly">周报</el-menu-item><el-menu-item index="/reports/monthly">月报</el-menu-item><el-menu-item index="/reports/custom">自定义报表</el-menu-item></el-submenu></el-submenu><el-menu-item index="/messages"><i class="el-icon-message"></i><span>消息中心</span></el-menu-item><el-menu-item index="/settings"><i class="el-icon-setting"></i><span>系统设置</span></el-menu-item><el-menu-item index="https://element.eleme.io" target="_blank"><i class="el-icon-link"></i><span>Element UI 文档</span></el-menu-item></el-menu></div><!-- 内容区域 --><div class="content"><!-- 路由出口 --><router-view></router-view></div></div><footer><p>© 2023 Vue.js + Element UI 导航系统 | 侧边栏布局示例</p></footer></div></div><!-- 引入Vue.js --><script src="https://unpkg.com/vue@2/dist/vue.js"></script><!-- 引入Vue Router --><script src="https://unpkg.com/vue-router@3/dist/vue-router.js"></script><!-- 引入Element UI --><script src="https://unpkg.com/element-ui/lib/index.js"></script><script>// 定义路由组件const Dashboard = { template: `<div><div class="stat-cards"><div class="stat-card"><i class="el-icon-s-order" style="font-size: 2rem; color: #1e5799;"></i><div class="value">24</div><div class="label">进行中的项目</div></div><div class="stat-card"><i class="el-icon-s-claim" style="font-size: 2rem; color: #1e5799;"></i><div class="value">128</div><div class="label">待处理任务</div></div><div class="stat-card"><i class="el-icon-s-comment" style="font-size: 2rem; color: #1e5799;"></i><div class="value">12</div><div class="label">未读消息</div></div><div class="stat-card"><i class="el-icon-user-solid" style="font-size: 2rem; color: #1e5799;"></i><div class="value">8</div><div class="label">在线成员</div></div></div><div class="page-content"><h2>控制面板</h2><p>欢迎使用系统控制面板。在这里您可以查看系统概览、管理项目、跟踪任务和访问各种工具。</p><p>使用左侧菜单导航到不同功能模块,或使用顶部菜单访问主要功能区域。</p><el-button type="primary" size="medium" style="margin-top: 20px;">开始使用</el-button></div></div>`};const Projects = { template: `<div class="page-content"><h2>项目管理</h2><p>在这里您可以创建新项目、管理现有项目、分配任务给团队成员并跟踪项目进度。</p><p>使用卡片视图、列表视图或甘特图查看项目状态。</p><el-button type="primary" style="margin-top: 20px;">创建新项目</el-button></div>`};const Tasks = { template: `<div class="page-content"><h2>任务管理</h2><p>查看和分配任务,设置优先级和截止日期,跟踪任务完成情况。</p><p>使用看板视图直观地管理任务状态:待处理、进行中、已完成。</p><el-button type="primary" style="margin-top: 20px;">创建新任务</el-button></div>`};const Calendar = { template: `<div class="page-content"><h2>日历管理</h2><p>查看日历,设置优先级和截止日期。</p><el-calendar style="margin-top: 20px; width: 100%;"><templateslot="dateCell"slot-scope="{date, data}"><p :class="data.isSelected ? 'is-selected' : ''">{{ data.day.split('-').slice(2).join('-') }}</p></template></el-calendar></div>`};const Messages = { template: `<div class="page-content"><h2>消息中心</h2><p>查看系统通知、团队消息和项目更新。与团队成员保持沟通。</p><p>您可以在这里发送和接收消息,设置消息提醒和通知偏好。</p><el-button type="primary" style="margin-top: 20px;">查看消息</el-button></div>`};const Settings = { template: `<div class="page-content"><h2>系统设置</h2><p>配置系统参数、用户权限、界面主题和其他个性化选项。</p><p>管理团队成员、设置角色权限和配置系统集成。</p><el-button type="primary" style="margin-top: 20px;">系统配置</el-button></div>`};const Reports = { template: `<div class="page-content"><h2>报表统计</h2><p>生成和查看各种报表,包括项目进度、团队绩效和资源使用情况。</p><p>自定义报表模板,设置自动生成和发送报表的时间表。</p><el-button type="primary" style="margin-top: 20px;">生成报表</el-button></div>`};// 定义路由const routes = [{ path: '/', redirect: '/dashboard' },{ path: '/dashboard', component: Dashboard },{ path: '/projects', component: Projects },{ path: '/calendar', component: Calendar },{ path: '/tasks', component: Tasks },{ path: '/messages', component: Messages },{ path: '/settings', component: Settings },{ path: '/reports', component: Reports },{ path: '/reports/weekly', component: Reports },{ path: '/reports/monthly', component: Reports },{ path: '/reports/custom', component: Reports }];// 创建路由实例const router = new VueRouter({routes});// 创建Vue实例new Vue({el: '#app',router,data() {return {activeIndex: '/dashboard',sidebarActive: false}},mounted() {// 设置当前激活菜单项this.activeIndex = this.$route.path;// 监听窗口大小变化window.addEventListener('resize', this.handleResize);this.handleResize();},beforeDestroy() {window.removeEventListener('resize', this.handleResize);},watch: {// 当路由变化时更新激活菜单项'$route'(to) {this.activeIndex = to.path;// 在移动设备上导航时关闭侧边栏if (window.innerWidth < 992) {this.sidebarActive = false;}}},methods: {handleSelect(key) {// 处理菜单选择if (key.startsWith('http')) {// 外部链接,在新标签页打开window.open(key, '_blank');} else {// 内部路由导航this.$router.push(key);}},toggleSidebar() {this.sidebarActive = !this.sidebarActive;},handleResize() {// 在大屏幕上自动显示侧边栏if (window.innerWidth >= 992) {this.sidebarActive = true;} else {this.sidebarActive = false;}}}});</script>
</body>
</html>

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

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

相关文章

使用 Python 正则表达式实现文本替换与电话号码规范化

文章大纲 以下是针对“使用 Python 正则表达式进行文本替换与电话号码规范化”主题的详细技术文章大纲。文章将全面探讨正则表达式在文本替换中的应用&#xff0c;特别是在处理电话号码规范化问题中的具体实现。每个部分的预计字符数反映了其在文章中的重要性&#xff0c;总计…

Python爬虫实战:从零构建高性能分布式爬虫系统

Python爬虫实战&#xff1a;从零构建高性能分布式爬虫系统 引言 在当今数据驱动的时代&#xff0c;网络爬虫已成为获取和分析互联网数据的重要工具。本文将带你从零开始构建一个高性能的分布式爬虫系统&#xff0c;涵盖从基础概念到高级技巧的全方位知识&#xff0c;帮助你在…

PostgreSQL 技术峰会,聚焦国产生态与前沿技术

PostgreSQL 技术峰会是由重庆思庄携手工信部中国开源软件联盟 PostgreSQL 分会联合举办的一场技术盛宴。峰会以 “PostgreSQL 与国产生态” 为主题&#xff0c;聚焦国产生态与前沿技术&#xff0c;致力于为开发者、运维工程师和技术决策者提供全面且深入的知识赋能。以下是其相…

Java详解LeetCode 热题 100(27):LeetCode 21. 合并两个有序链表(Merge Two Sorted Lists)详解

文章目录 1. 题目描述1.1 链表节点定义 2. 理解题目2.1 问题可视化2.2 核心挑战 3. 解法一&#xff1a;迭代法&#xff08;哨兵节点&#xff09;3.1 算法思路3.2 Java代码实现3.3 详细执行过程演示3.4 执行结果示例3.5 复杂度分析3.6 优缺点分析 4. 解法二&#xff1a;递归法4.…

面试高频问题

文章目录 &#x1f680; 消息队列核心技术揭秘&#xff1a;从入门到秒杀面试官1️⃣ Kafka为何能"吞云吐雾"&#xff1f;性能背后的秘密1.1 顺序写入与零拷贝&#xff1a;性能的双引擎1.2 分区并行&#xff1a;数据的"八车道高速公路"1.3 页缓存与批量处理…

Day49 Python打卡训练营

知识点回顾&#xff1a; 1.通道注意力模块复习 2.空间注意力模块 3.CBAM的定义 cbam模块介绍 cbam注意力 之前我们介绍了se通道注意力&#xff0c;我们说所有的模块本质上只是对特征进一步提取&#xff0c;今天进一步介绍cbam注意力 CBAM 是一种能够集成到任何卷积神经网络…

MySQL:Cannot remove all partitions, use DROP TABLE instead

目录 一、 出现场景二、问题原因三、 解决方案 一、 出现场景 在MySQL创建分区之后&#xff0c;要删除所有分区时&#xff0c;最后一个分区删除不了。 二、问题原因 这是因为 MySQL 不允许通过 ALTER TABLE … DROP PARTITION 删除所有分区&#xff0c;因为分区是表的核心结…

深度学习水论文:mamba+图像增强

&#x1f9c0;当前视觉领域对高效长序列建模需求激增&#xff0c;对Mamba图像增强这方向的研究自然也逐渐火热。原因在于其高效长程建模&#xff0c;以及动态计算优势&#xff0c;在图像质量提升和细节恢复方面有难以替代的作用。 &#x1f9c0;因此短时间内&#xff0c;就有不…

今天对C语言中static和extern关键字的作用认识又深刻了

用了这么久的C语言&#xff0c;之前对于static关键字的用法总是一知半解&#xff0c;今天终于搞清楚了&#xff0c;写个文章简单记录一下。 用static修饰的变量&#xff0c;不管是全局变量还是局部变量&#xff0c;其存储位置都是静态存储区&#xff0c;全局变量作用域是当前文…

河北对口计算机高考MySQL笔记(完结版)(2026高考)持续更新~~~~

MySQL 基础概念 数据&#xff08;Data&#xff09;&#xff1a;文本&#xff0c;数字&#xff0c;图片&#xff0c;视频&#xff0c;音频等多种表现形式&#xff0c;能够被计算机存储和处理。 **数据库&#xff08;Data Base—简称DB&#xff09;&#xff1a;**存储数据的仓库…

vmware ubuntu扩展硬盘(可用)

一、 右键需要的虚拟机&#xff0c;选择设置&#xff0c;调整最大内存 二、安装gparted软件 sudo apt-get install gparted 三、搜索应用然后打开 四、右键/dev/sda3 五、调整大小 六、勾选确定 点绿色勾&#xff1a;

RoBERTa 和 BERT 的简介与对比

RoBERTa 和 BERT 是什么 一、BERT(Bidirectional Encoder Representations from Transformers) 提出背景:由谷歌于2019年提出,是自然语言处理领域的里程碑模型,基于Transformer编码器架构,通过预训练生成双向语言表示。 核心特点: 双向预训练:通过掩码语言模型(MLM)…

前端绘制道路鱼骨图

项目背景&#xff1a;需要实现道路情况鱼骨图&#xff0c;根据上下行道路分别显示对应的道路情况和沿路设施状况&#xff0c;箭头根据所示方向平滑移动 1.封装组件&#xff0c;创建FishboneDiagram.vue文件 <template><div class"fishedOneBox flex items-cente…

selinux firewalld

一、selinux 1.说明 SELinux 是 Security-Enhanced Linux 的缩写,意思是安全强化的 linux; SELinux 主要由美国国家安全局(NSA)开发,当初开发的目的是为了避免资源的误用 DAC(Discretionary Access Control)自主访问控制系统MAC(Mandatory Access Control)强制访问控…

RSS 2025|从说明书学习复杂机器人操作任务:NUS邵林团队提出全新机器人装配技能学习框架Manual2Skill

视觉语言模型&#xff08;Vision-Language Models, VLMs&#xff09;&#xff0c;为真实环境中的机器人操作任务提供了极具潜力的解决方案。 尽管 VLMs 取得了显著进展&#xff0c;机器人仍难以胜任复杂的长时程任务&#xff08;如家具装配&#xff09;&#xff0c;主要受限于人…

NPOI Excel用OLE对象的形式插入文件附件以及插入图片

static void Main(string[] args) {XlsWithObjData();Console.WriteLine("输出完成"); }static void XlsWithObjData() {// 创建工作簿和单元格,只有HSSFWorkbook,XSSFWorkbook不可以HSSFWorkbook workbook new HSSFWorkbook();HSSFSheet sheet (HSSFSheet)workboo…

企业数字化转型实战:某行业研究院如何通过SD-WAN技术优化网络架构?

一、引言 随着企业数字化转型的深入推进&#xff0c;传统网络架构在灵活性、可靠性和管理效率方面逐渐暴露不足。SD-WAN&#xff08;软件定义广域网&#xff09;技术凭借其智能化、自动化和高效的特点&#xff0c;逐渐成为企业网络架构优化的首选方案。本文以某研究院数字化基…

数字证书_CA_详解

目录 一、数字证书简介 二、 CA&#xff08;证书颁发机构&#xff09; (一) 证书链&#xff08;信任链&#xff09; 1. 根证书 2. 中间证书 3. 网站证书 (二) 抓包软件的证书链与信任机制 1. 抓包通信流程 2. 证书链伪造与信任验证流程 (三) 关于移动设备的CA 一、数…

Android协程学习

目录 Android上的Kotlin协程介绍基本概念与简单使用示例协程的高级用法 结构化并发线程调度器(Dispatchers)自定义调度器并发:同步 vs 异步 异步并发(async 并行执行)同步顺序执行协程取消与超时 取消机制超时控制异步数据流 Flow协程间通信 使用 Channel使用 StateFlow /…

统计学(第8版)——假设检验学习笔记(考试用)

一、假设检验核心框架 &#xff08;一&#xff09;解决的核心问题 判断样本与总体 / 样本与样本的差异是由抽样误差还是本质差异引起 典型场景&#xff1a; 产品合格率是否达标&#xff08;比例检验&#xff09;工艺改进后均值是否显著变化&#xff08;均值检验&#xff09…