上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 项目结构 express中间件指定静态资源目录 app.use("/static",express.static(path.join(__dirname,"/public"))) 图片下载到本地路径 app.use(multer({dest:"./public"}).array("file")) 请 阅读全文
posted @ 2020-05-20 11:41 山吹同学 阅读(422) 评论(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 山吹同学 阅读(1274) 评论(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 山吹同学 阅读(563) 评论(0) 推荐(0)
摘要: 页面效果图: html代码: <div class="shop-car" id='car'> <div class="count-custom"> 全部商品 {{count}} </div> <table border="1" cellspacing="0" cellpadding="10"> <t 阅读全文
posted @ 2020-04-30 15:16 山吹同学 阅读(754) 评论(0) 推荐(0)
摘要: 首次上传项目到github上 在项目上右击——>选择 Git Bash Here 直接进入到存放项目文件的地址 git init 在当前项目的目录中生成本地的git管理 git add . 将项目上的所有的文件添加到仓库中,如果想添加某个特定的文件,只需要把 . 换成这个文件名就可以了 git co 阅读全文
posted @ 2020-03-13 21:21 山吹同学 阅读(90) 评论(0) 推荐(0)
摘要: 在微信小程序中,有自制对话框用于提交数据,但是会出现用户连续点击,多次提交数据的情况。 //.wxml<view class="acertain" bindtap="{{dis?'acertain':''}}" >确定</view>//.js//在 data中定义 data:{dis:true} a 阅读全文
posted @ 2020-03-13 21:00 山吹同学 阅读(5747) 评论(0) 推荐(0)
摘要: 错误提示如下: thirdScriptErrorerrCode: -1 | errMsg: Cloud API isn't enabled, please call wx.cloud.init first请先调用 wx.cloud.init() 完成初始化后再调用其他云 API。init 方法可传入 阅读全文
posted @ 2020-02-26 16:09 山吹同学 阅读(2571) 评论(0) 推荐(0)
摘要: 最近在慢慢尝试转换自己书写代码的设计模式,之前都是定义一个又一个的函数,感觉太乱了。 代码: <script type="text/javascript"> function Nine(one_ele,two_ele){ this.one=one_ele; this.two=two_ele; } N 阅读全文
posted @ 2020-02-20 22:18 山吹同学 阅读(274) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页