Vue前端練習

此練習項目只涉及前端,主要是vue和ElementUI框架的使用。(ElementUI官網:Element - The world's most popular Vue UI framework)

一、環境準備

  1. 安裝idea

  2. 安裝Node.js 一鍵式安裝(不需要做任何配置) npm -v(也可用node多版本管理工具nvm進行管理和下載)

  3. 修改npm鏡像源 npm config set registry https://registry.npmmirror.com

  4. 獲取鏡像源地址 npm config get registry

  5. 安裝VUE Cli腳手架 npm install -g @vue/cli

  6. 驗證Vue Cli安裝是否成功 vue -V

? ? ?7.創建Vue Cli工程項目

? ? ? ? 創建一個Vue-Workspace文件夾,用來存放vue項目。在此文件內,打開命令行。

? ? ? 使用?vue create?命令即可創建VUE CLI工程,命令格式是:

vue create 工程名稱

配置工作及如何在idea中打開,請參考以下教程 :

Vue-Cli(腳手架)安裝及如何創建Vue-Cli項目-保姆級別教程,手把手教會你-CSDN博客

? ? ? 8.工程結構

? ? ? 8.1 App.vue:此vue文件是訪問工程根路徑時自動顯示的組件(* .vue)

? ? ? 8.2 views文件夾:以后開發的所有的頁面(*.vue)基本上都是保存在此文件夾下

? ? ? 8.3 router/index.js:路由配置文件,在里面配置客戶端請求xxx地址時由xxx.vue頁面顯示

? ? ? 8.4 main.js:工程的主JS文件,引入各個框架的代碼寫在此文件下

? ? ? 8.5 package.json:修改端口號,修改框架版本在此配置文件中操作

? ? ? 8.6 public文件夾:圖片資源文件保存在此文件夾下

? ? ?9.引入ElementUI框架

? ? ? ?9.1終止vue啟動,并執行npm install --save element-ui

? ? ? ?9.2在main.js中引入

? ? ? ? ? ? ?import ElementUI from 'element-ui';

? ? ? ? ? ? ?import 'element-ui/lib/theme-chalk/index.css';

? ? ? ? ? ? ?Vue.use(ElementUI);

main.js代碼:

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);Vue.config.productionTip = falsenew Vue({router,store,render: h => h(App)
}).$mount('#app')

二、具體實現及代碼

項目結構如下:

index.js

import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'Vue.use(VueRouter)const routes = [{path: '/',name: 'home',component: HomeView,children:[{path: '/reg',component: ()=>import('../views/RegView.vue')},{path: '/login',component: ()=>import('../views/LoginView.vue')},{path: '/index',component: ()=>import('../views/IndexView.vue')},{path: '/detail',component: ()=>import('../views/DetailView.vue')}]}]const router = new VueRouter({mode: 'history',base: process.env.BASE_URL,routes
})export default router

App.vue

<template><div id="app"><router-view/></div>
</template><style>
body {background-color: rgb(241, 242, 243);
}</style>

HomeView.vue

<template><div class="home"><el-container><!--頁面頭部--><el-header height="80px" style="background-color: white"><div style="width: 1200px;margin: 0 auto"><el-row :gutter="20"><el-col :span="6"><img src="/imgs/icon.png" width="200"></el-col><el-col :span="10"><el-menu mode="horizontal" active-text-color="orange"><el-menu-item index="1">首頁</el-menu-item><el-menu-item index="2">食譜</el-menu-item><el-menu-item index="3">視頻</el-menu-item><el-menu-item index="4">資訊</el-menu-item></el-menu><div class="line"></div></el-col><el-col :span="6"><el-input placeholder="請輸入搜索的關鍵字" style="position: relative;top: 20px"><el-button slot="append" icon="el-icon-search"></el-button></el-input></el-col><el-col :span="2"><el-popoverplacement="top-start"title="歡迎來到烘焙坊!"width="200"trigger="hover"><i slot="reference" class="el-icon-user"style="font-size: 30px;position: relative;top: 20px"></i><el-button type="info" @click="reg()">注冊</el-button><el-button type="warning" @click="login()">登錄</el-button></el-popover></el-col></el-row></div></el-header><el-main id="el-main"><router-view/></el-main><!--頁面頁腳--><el-footer style="height:280px;background-color: black;padding: 50px"><div style="width: 1200px;color:#666;text-align:center;margin: 0 auto"><el-row><el-col :span="8"><img src="/imgs/icon.png" width="200"><p>教程靈感就看烘焙坊</p><p>烘焙行業網絡社區平臺</p><p>全國百城上千個職位等你來</p></el-col><el-col :span="8"><el-row id="footer_center"><el-col :span="8"><h3>關于我們</h3><p>烘焙學院</p><p>烘焙食譜</p><p>分類信息</p><p>招聘信息</p><p>社區交流</p></el-col><el-col :span="8"><h3>服務與支持</h3><p>聯系我們</p><p>廣告投放</p><p>用戶協議</p><p>友情鏈接</p><p>在線反饋</p><p>我發投稿</p></el-col><el-col :span="8"><h3>底部導航</h3><p>Archiver</p><p>手機版</p><p>小黑屋</p></el-col></el-row></el-col><el-col :span="8"><p style="font-size: 60px;margin: 0"><span style="color: orange">烘焙</span>坊</p><p>烘焙行業網絡社區平臺</p></el-col></el-row></div></el-footer></el-container></div>
</template><script>export default {name: 'HomeView',methods: {reg() {/*location.href='/reg'   /!*這種跳轉方法是頁面整體刷新,影響頁面的加載速度*!/*//*腳手架開發中使用這種跳轉方式*/if (this.$route.path !== '/reg') {this.$router.push('/reg');}},login() {/*location.href='/login'*/if (this.$route.path !== '/login') {this.$router.push('/login');}}},
}
</script><style>
#footer_center p {margin: 0;
}#footer_center h3 {color: white;
}#el-main {margin: 0;padding: 0;
}
</style>

IndexView.vue

<template><div style="width: 1200px;margin: 10px auto"><!-- 輪播圖 --><el-carousel height="350px"><el-carousel-item><img src="/imgs/banner1.jpg"></el-carousel-item><el-carousel-item><img src="/imgs/banner2.jpg"></el-carousel-item><el-carousel-item><img src="/imgs/banner3.jpg"></el-carousel-item></el-carousel><!-- 烘焙食譜導航條--><el-row style="background-color: white"><el-col :span="3"><p style="font-size: 28px;margin: 15px">烘焙食譜</p></el-col><el-col :span="21"><el-menu mode="horizontal" active-text-color="orange" default-active="1"><el-menu-item index="1">全部</el-menu-item><el-menu-item index="2">面包</el-menu-item><el-menu-item index="3">零食</el-menu-item><el-menu-item index="4">家常菜</el-menu-item></el-menu></el-col></el-row><!--烘焙食譜列表--><el-row :gutter="20"><el-col :span="6" v-for="item in recipeArr" style="margin: 10px 0"><el-card><a href="javascript:void(0)"><img :src="item.imgUrl" width="100%" height="145"><p style="height: 40px;">{{ item.title }}</p></a><el-row><el-col :span="4"><el-avatar :src="item.userImgUrl" size="small"></el-avatar></el-col><el-col :span="10">{{ item.nickName }}</el-col><el-col :span="10"><span style="float: right;font-size: 12px;color: #666">{{ item.categoryName }}</span></el-col></el-row></el-card></el-col></el-row><!--點擊加載更多--><div style="text-align: center"><el-button>點擊加載更多</el-button></div><!-- 烘焙視頻導航條--><el-row style="background-color: white"><el-col :span="3"><p style="font-size: 28px;margin: 15px">烘焙視頻</p></el-col><el-col :span="21"><el-menu mode="horizontal" active-text-color="orange" default-active="1"><el-menu-item index="1">面包教學</el-menu-item><el-menu-item index="2">零食鑒賞</el-menu-item><el-menu-item index="3">家常菜教程</el-menu-item></el-menu></el-col></el-row><!--烘焙視頻列表--><el-row :gutter="20"><el-col :span="6" v-for="item in recipeArr" style="margin: 10px 0"><el-card><a href="javascript:void(0)"><img :src="item.imgUrl" width="100%" height="145"><p style="height: 40px;">{{ item.title }}</p></a><el-row><el-col :span="4"><el-avatar :src="item.userImgUrl" size="small"></el-avatar></el-col><el-col :span="10">{{ item.nickName }}</el-col><el-col :span="10"><span style="float: right;font-size: 12px;color: #666">{{ item.categoryName }}</span></el-col></el-row></el-card></el-col></el-row><!--點擊加載更多--><div style="text-align: center"><el-button>點擊加載更多視頻</el-button></div><!-- 行業資訊導航條--><el-row style="background-color: white"><el-col :span="3"><p style="font-size: 28px;margin: 15px">行業資訊</p></el-col><el-col :span="21"><el-menu mode="horizontal" active-text-color="orange" default-active="1"><el-menu-item index="1">全部</el-menu-item><el-menu-item index="2">美食資訊</el-menu-item><el-menu-item index="3">店家資訊</el-menu-item></el-menu></el-col></el-row><!--行業資訊列表--><el-row :gutter="20"><el-col :span="6" v-for="item in recipeArr" style="margin: 10px 0"><el-card><a href="javascript:void(0)"><img :src="item.imgUrl" width="100%" height="145"><p style="height: 40px;">{{ item.title }}</p></a><el-row><el-col :span="4"><el-avatar :src="item.userImgUrl" size="small"></el-avatar></el-col><el-col :span="10">{{ item.nickName }}</el-col><el-col :span="10"><span style="float: right;font-size: 12px;color: #666">{{ item.categoryName }}</span></el-col></el-row></el-card></el-col></el-row><!--點擊加載更多--><div style="text-align: center"><el-button>點擊加載更多資訊</el-button></div></div>
</template><script>
export default {name: "IndexView",data() {return {recipeArr: [{"id": 27,"title": "家常面包","imgUrl": "imgs/a.jpg","categoryName": "面包","nickName": "湯姆","userImgUrl": "imgs/head.jpg"},{"id": 18,"title": "爆漿抹茶甜甜圈面包,自帶幸福感的小甜甜","imgUrl": "imgs/b.jpg","categoryName": "家常菜","nickName": "湯姆","userImgUrl": "imgs/head.jpg"},{"id": 17,"title": "心形火龍果椰蓉面包,任誰都抗拒不了","imgUrl": "imgs/c.jpg","categoryName": "小食","nickName": "湯姆","userImgUrl": "imgs/head.jpg"},{"id": 16,"title": "蔓越莓綠豆糕,味道還不錯值得一試!","imgUrl": "imgs/d.jpg","categoryName": "面包","nickName": "湯姆","userImgUrl": "imgs/head.jpg"},]}}
}
</script><style scoped>
a {text-decoration: none;color: #11192d;
}</style>

LoginView.vue

<template><div id="main_div"><el-card style="width: 500px;height: 300px;margin: 50px auto"><el-form label-width="80px" style="margin-top: 50px;width: 430px"><el-form-item label="用戶名"><el-input placeholder="請輸入用戶名" v-model="user.username"></el-input></el-form-item><el-form-item label="密碼"><el-input type="password" placeholder="請輸入密碼" v-model="user.password"></el-input></el-form-item><el-form-item style="text-align: center;"><el-button type="primary" style="position: relative;right: 30px">登錄</el-button></el-form-item></el-form></el-card></div>
</template><script>
export default {name: "LoginView",data() {return {user: {username: "",password: ""}};}
}
</script><style scoped>#main_div {height: 500px;background-image: url('/public/imgs/loginbg.gif');background-position: center; /*設置背景圖居中*/background-size: cover; /*設置為封面*/overflow: hidden; /*解決粘連問題*/
}</style>

RegView.vue

<template><div style="width: 1200px;margin: 20px auto"><el-row :gutter="20"><el-col :span="12"><el-card><img src="/imgs/reg.png" width="100%"></el-card></el-col><el-col :span="12"><el-form  label-width="80px" style="margin-top: 50px"><el-form-item><h1 style="font-size: 25px">立即注冊 <a href="/login"style="font-size: 15px;color:#0aa1ed;text-decoration:none;float: right">已有賬號?現在登錄</a></h1></el-form-item><el-form-item label="用戶名"><el-input placeholder="請輸入用戶名"></el-input></el-form-item><el-form-item label="密碼"><el-input type="password" placeholder="請輸入密碼"></el-input></el-form-item><el-form-item label="昵稱"><el-input placeholder="請輸入昵稱"></el-input></el-form-item><el-form-item style="text-align: center;"><el-button type="primary">注冊</el-button></el-form-item></el-form></el-col></el-row></div>
</template><script>
export default {name: "RegView"
}
</script><style scoped></style>

DetailView.vue

<template><el-row gutter="20"><el-col span="18"><el-card><h2 style="color: orange;text-align: center">棗泥花式面包,好吃到爆!</h2><p style="font-size: 12px;color: #666;text-align: center">作者:湯姆 | 發布時間:2023/5/26 11:12:30 | 閱讀次數:1</p><el-divider></el-divider><el-card style="font-size: 12px"><b style="color: #409EFF">摘要:</b>之前做了棗泥餡,配上花式面包,好吃到爆。 棗泥花式面包的用料 肉松面包面團</el-card><p style="height: 500px">文章內容</p></el-card><!--評論相關開始--><el-card><p>發一條友善的評論</p><el-divider></el-divider><el-row gutter="20"><el-col span="20"><el-input type="textarea" placeholder="說點兒啥..."></el-input></el-col><el-col span="2"><el-button>發布</el-button></el-col></el-row><!--評論列表開始--><el-row style="margin: 5px 0"><el-col span="2"><el-avatar src="imgs/head.jpg"></el-avatar></el-col><el-col span="20"><span style="color: orange;font-weight: bold">湯姆:</span><p style="margin:5px 0">開起來很好吃!</p><span style="color: #666;font-size: 12px">2023/5/26 15:52:30</span></el-col></el-row><el-row style="margin: 5px 0"><el-col span="2"><el-avatar src="imgs/head.jpg"></el-avatar></el-col><el-col span="20"><span style="color: orange;font-weight: bold">湯姆:</span><p style="margin:5px 0">開起來很好吃!</p><span style="color: #666;font-size: 12px">2023/5/26 15:52:30</span></el-col></el-row><el-row style="margin: 5px 0"><el-col span="2"><el-avatar src="imgs/head.jpg"></el-avatar></el-col><el-col span="20"><span style="color: orange;font-weight: bold">湯姆:</span><p style="margin:5px 0">開起來很好吃!</p><span style="color: #666;font-size: 12px">2023/5/26 15:52:30</span></el-col></el-row><!--評論列表結束--></el-card><!--評論相關結束--></el-col><el-col span="6"><el-card class="right-card" style="height: 240px;text-align: center;"><div style="background-image: url('/imgs/avarbg.jpg');height: 90px"></div><div style="position: relative;top: -45px"><img src="imgs/head.jpg"style="border-radius: 90px;border: 5px solid white;width: 90px;height: 90px"><p style="font-size: 20px;margin: 0;font-weight: bold">湯姆</p><i class="el-icon-edit">本文作者</i><br><i class="el-icon-time">2023/5/26 16:43:30</i></div></el-card><!--作者其它文章開始--><el-card style="margin:10px 0"><h3>作者其它文章</h3><el-divider></el-divider><!--文章列表開始--><el-row gutter="10" v-for="item in 4"><el-col span="10"><img src="imgs/a.jpg" width="100%" height="70px"></el-col><el-col span="14"><p style="margin: 0;height: 50px">棗泥面包好吃到爆!</p><i class="el-icon-time" style="color: #666">2023/6/30</i></el-col></el-row><!--文章列表結束--></el-card><!--作者其它文章結束--><!--熱門文章開始--><el-card style="margin:10px 0"><h3>熱門文章</h3><el-divider></el-divider><!--文章列表開始--><el-row gutter="10" v-for="item in 4"><el-col span="10"><img src="imgs/a.jpg" width="100%" height="70px"></el-col><el-col span="14"><p style="margin: 0;height: 50px">棗泥面包好吃到爆!</p><i class="el-icon-time" style="color: #666">2023/6/30</i></el-col></el-row><!--文章列表結束--></el-card><!--熱門文章結束--></el-col></el-row></template><script>
export default {name: "DetailView"
}
</script><style scoped></style>

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/diannao/39720.shtml
繁體地址,請注明出處:http://hk.pswp.cn/diannao/39720.shtml
英文地址,請注明出處:http://en.pswp.cn/diannao/39720.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

mysql-sql-第十五周

學習目標&#xff1a; sql 學習內容&#xff1a; 41.查詢沒有學全所有課程的同學的信息 select *from students where students.stunm not in (select score.stunm from score group by score.stunm having count(score.counm) (select count(counm) from course)) 42.查詢…

數據結構_線性表

線性表的定義和特點 線性表是具有相同特性的數據元素的一個有限序列 :線性起點/起始節點 :的直接前驅 :的直接后繼 :線性終點/終端節點 n:元素總個數,表長 下標:是元素的序號,表示元素在表中的位置 n0時稱為空表 線性表 由n(n>0)個數據元素(結點),組成的有限序列 將…

安卓模擬器如何修改ip地址

最近很多老鐵玩游戲的&#xff0c;想多開模擬器一個窗口一個IP&#xff0c;若模擬器窗口開多了&#xff0c;IP一樣會受到限制&#xff0c;那么怎么更換自己電腦手機模擬器IP地址呢&#xff0c;今天就教大家一個修改模擬器IP地址的方法&#xff01;廢話不多說&#xff0c;直接上…

Matlab 中 fftshift 與 ifftshift

文章目錄 【 1. fftshift、ifftshift 的區別】【 2. fftshift(fft(A)) 作圖 】【 3. fftshift(fft(A)) 還原到 A 】Matlab 直接對信號進行 FFT 的結果中,前半部分是正頻,后半部分是負頻,為了更直觀的表示,需要將 負頻 部分移到 前面。【 1. fftshift、ifftshift 的區別】 M…

alibaba EasyExcel 簡單導出數據到Excel

導入依賴 <dependency><groupId>com.alibaba</groupId><artifactId>easyexcel</artifactId><version>4.0.1</version> </dependency> 1、alibaba.excel.EasyExcel導出工具類 import com.alibaba.excel.EasyExcel; import …

探索哈希函數:數據完整性的守護者

引言 銀行在處理數以百萬計的交易時&#xff0c;如何確保每一筆交易都沒有出錯&#xff1f;快遞公司如何跟蹤成千上萬的包裹&#xff0c;確保每個包裹在運輸過程中沒有丟失或被替換&#xff1f;醫院和診所為龐大的患者提供有效的醫療保健服務&#xff0c;如何確保每個患者的醫療…

假陽性和假陰性、真陽性和真陰性

在深度學習的分類問題中&#xff0c;真陽性、真陰性、假陽性和假陰性是評估模型性能的重要指標。它們的定義和計算如下&#xff1a; 真陽性&#xff08;True Positive, TP&#xff09;&#xff1a; 定義&#xff1a;模型預測為正類&#xff08;陽性&#xff09;&#xff0c;且實…

電梯修理升級,安裝【電梯節能】能量回饋設備

電梯修理升級&#xff0c;安裝【電梯節能】能量回饋設備 1、節能率評估 15%—45% 2、降低機房環境溫度&#xff0c;改善電梯控制系統的運行環境&#xff1b; 3、延長電梯使用壽命&#xff1b; 4、機房可以不需要使用空調等散熱設備的耗電&#xff0c;間接節省電能。 歡迎私詢哦…

智能數字人系統的主要功能

智能數字人系統或虛擬數字人系統&#xff0c;是指利用人工智能技術構建的虛擬人物形象&#xff0c;能夠與人進行自然交互的系統。數字人系統的主要功能包括以下幾個方面。北京木奇移動技術有限公司&#xff0c;專業的軟件外包開發公司&#xff0c;歡迎交流合作。 1. 語言理解與…

昇思25天學習打卡營第2天|初學入門

昇思25天學習打卡營第2天 文章目錄 昇思25天學習打卡營第2天網絡構建定義模型類模型層nn.Flattennn.Densenn.ReLUnn.SequentialCellnn.Softmax 模型參數 函數式自動微分函數與計算圖微分函數與梯度計算Stop GradientAuxiliary data神經網絡梯度計算 問題集合打卡記錄 網絡構建 …

橋接模式與適配器模式

一、共性和區別 橋接設計模式和適配器設計模式的共同點和明顯&#xff0c;它們都是使兩種不同的類配合工。 二者的區別在于&#xff0c;適配器模式是將已有的兩個不同接口接口組合到一起&#xff0c;使得適配器同時擁有兩個不同接口的功能&#xff0c;其目的是使兩個不兼…

Spring Boot與微服務治理框架的集成方法

Spring Boot與微服務治理框架的集成方法 大家好&#xff0c;我是免費搭建查券返利機器人省錢賺傭金就用微賺淘客系統3.0的小編&#xff0c;也是冬天不穿秋褲&#xff0c;天冷也要風度的程序猿&#xff01; 在當今快速發展的軟件開發領域&#xff0c;微服務架構因其靈活性、可…

華為DCN之:SDN和NFV

1. SDN概述 1.1 SDN的起源 SDN&#xff08;Software Defined Network&#xff09;即軟件定義網絡。是由斯坦福大學Clean Slate研究組提出的一種新型網絡創新架構。其核心理念通過將網絡設備控制平面與數據平面分離&#xff0c;從而實現了網絡控制平面的集中控制&#xff0c;為…

移動網絡捕獲在數字化轉型中的重要性

數字化轉型重新定義了企業運營和與客戶互動的方式。它為組織提供價值的方式帶來了根本性的轉變&#xff0c;使流程更易于訪問、更高效、更具協作性和更安全。然而&#xff0c;跟上不斷發展的數字環境可能是一項挑戰&#xff0c;而未能接受數字化轉型的企業則面臨被淘汰的風險。…

表達式二叉樹的應用

在計算機科學的廣闊領域中,數據結構是構建高效程序和算法的基石。其中,表達式二叉樹(Expression Tree)是一種特殊而強大的數據結構,它將數學表達式的解析和計算轉化為直觀的圖形表示,不僅簡化了復雜的運算過程,還為編譯器設計、計算器應用以及符號數學軟件提供了堅實的基…

(八)EBO和glDrawElements

EBO EBO(Element Buffer Object)&#xff1a;元素緩沖對象&#xff0c;用于存儲頂點繪制順序索引號的GPU顯存區域 unsigned int indices[] {0, 1, 2,2, 1, 3};//EBO創建和綁定GLuint ebo 0;glGenBuffers(1, &ebo);glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, ebo);glBufferD…

【MindSpore學習打卡】應用實踐-計算機視覺-ShuffleNet圖像分類:從理論到實踐

在當今的深度學習領域&#xff0c;卷積神經網絡&#xff08;CNN&#xff09;已經成為圖像分類任務的主流方法。然而&#xff0c;隨著網絡深度和復雜度的增加&#xff0c;計算資源的消耗也顯著增加&#xff0c;特別是在移動設備和嵌入式系統中&#xff0c;這種資源限制尤為突出。…

25計算機考研,這些學校雙非閉眼入,性價比超高!

計算機考研&#xff0c;好的雙非院校也很多&#xff01; 對于一些二本準備考研的同學來說&#xff0c;沒必要一直盯著985/211這些院校&#xff0c;競爭激烈不說&#xff0c;容易當陪跑&#xff0c;下面這些就是不錯的雙非院校&#xff1a; 燕山大學南京郵電大學南京信息工程大…

WPS-Word文檔表格分頁

一、問題描述 這種情況不好描述 就是像這種表格內容&#xff0c;但是會有離奇的分頁的情況。這種情況以前的錯誤解決辦法就是不斷地調整表格的內容以及間隔顯得很亂&#xff0c;于是今天去查了解決辦法&#xff0c;現在學會了記錄一下避免以后忘記了。 二、解決辦法 首先記…

《昇思25天學習打卡營第5天 | mindspore 網絡構建 Cell 常見用法》

1. 背景&#xff1a; 使用 mindspore 學習神經網絡&#xff0c;打卡第五天&#xff1b; 2. 訓練的內容&#xff1a; 使用 mindspore 的 nn.Cell 構建常見的網絡使用方法&#xff1b; 3. 常見的用法小節&#xff1a; 支持一系列常用的 nn 的操作 3.1 nn.Cell 網絡構建&…