上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页
摘要: getUser(e) { wx.getUserProfile({ desc: '用户完善会员资料', success: res => { let userInfo = res.userInfo; uni.showLoading({ title: '登录中' }); wx.login({ //成功放回 阅读全文
posted @ 2022-09-20 09:51 最帅爸爸 阅读(118) 评论(0) 推荐(0)
摘要: npm init -y(初始化项目) npm install mongodb --save(引入MongoDB) const { MongoClient } = require("mongodb"); //依赖MongoClient let client=new MongoClient("mongo 阅读全文
posted @ 2022-09-19 11:59 最帅爸爸 阅读(51) 评论(0) 推荐(0)
摘要: npm init -y(初始化项目) npm install express(引入express) npx express-generator -e(自动生成模板。添加对 ejs 模板引擎的支持) npm i --save lodash(引入lodash) app.js var createErro 阅读全文
posted @ 2022-09-19 11:47 最帅爸爸 阅读(50) 评论(0) 推荐(0)
摘要: npm init -y(初始化项目) npm install express(引入express) npx express-generator -e(自动生成模板。添加对 ejs 模板引擎的支持) npm i --save lodash(引入lodash) 路由配置carApi.js const e 阅读全文
posted @ 2022-09-19 11:34 最帅爸爸 阅读(113) 评论(0) 推荐(0)
摘要: npm init -y(初始化项目) npm i --save lodash(引入lodash) const _=require("lodash"); let stus=[ {id:1,name:"tom",age:40}, {id:2,name:"xiao",age:28}, {id:3,name 阅读全文
posted @ 2022-09-19 08:59 最帅爸爸 阅读(202) 评论(0) 推荐(0)
摘要: npm init -y(初始化项目) npm install express(引入express) npx express-generator -e(自动生成模板。添加对 ejs 模板引擎的支持) app.js const express=require("express"); const path 阅读全文
posted @ 2022-09-19 08:52 最帅爸爸 阅读(36) 评论(0) 推荐(0)
摘要: npm init -y(初始化项目) npm uninstall (xxx模块名称)=>(移除模块) var text2=require("./text2"); //解构 const {a:A,b:B}=require("./text2") console.log(A,B) console.log( 阅读全文
posted @ 2022-09-19 08:38 最帅爸爸 阅读(71) 评论(0) 推荐(0)
摘要: <template> <view> <button open-type="share">发送给好友</button> </view> </template> <script> export default { data() { return { } }, onLoad(){ wx.showShare 阅读全文
posted @ 2022-09-17 22:27 最帅爸爸 阅读(107) 评论(0) 推荐(0)
摘要: 外部js文件 function a(a,b) { console.log(a+b);} 导出:module.exports ={a}; 引用: import {a} from (路径); 阅读全文
posted @ 2022-09-17 20:48 最帅爸爸 阅读(20) 评论(0) 推荐(0)
摘要: function date(date) { var date = new Date(date * 1000);//时间戳为10位需*1000,时间戳为13位的话不需乘1000 var Y = date.getFullYear() + '-'; var M = (date.getMonth()+1 < 阅读全文
posted @ 2022-09-17 20:38 最帅爸爸 阅读(187) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页