網站首頁菜單兩種布局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
繁體地址,請注明出處:http://hk.pswp.cn/news/908902.shtml
英文地址,請注明出處:http://en.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…