05 2020 档案

摘要:项目结构 express中间件指定静态资源目录 app.use("/static",express.static(path.join(__dirname,"/public"))) 图片下载到本地路径 app.use(multer({dest:"./public"}).array("file")) 请 阅读全文
posted @ 2020-05-20 11:41 山吹同学 阅读(423) 评论(0) 推荐(0)
摘要:1. 子组件使用父组件方法,并向父组件传值 子组件代码 <template> <div class="menu"> <div class="item-group" v-for="(item,index) in menu"> <router-link :to="item.url" tag="div" 阅读全文
posted @ 2020-05-15 11:01 山吹同学 阅读(436) 评论(0) 推荐(0)
摘要:登录页面图: node.js文件代码: const express=require("express"); const app=express(); const path=require("path") const cors=require("cors") const bodyParser=requ 阅读全文
posted @ 2020-05-14 09:29 山吹同学 阅读(1281) 评论(0) 推荐(0)
摘要:效果图 html代码 <div class="lay-item" v-for="(item,index) in routerList" @click.nactive="changeItem(index)"> <router-link :to="item.url" tag="span" :class= 阅读全文
posted @ 2020-05-06 14:56 山吹同学 阅读(552) 评论(0) 推荐(0)
摘要:效果图: html代码: <div id="date"> <p> <span id="prev">上一月</span> <span id="year">2022</span> <span id="next">下一月</span> </p> <h5 id="month">七月</h5> <ul id= 阅读全文
posted @ 2020-05-01 08:56 山吹同学 阅读(566) 评论(0) 推荐(0)