上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 39 下一页
摘要: input::placeholder { font-size: 12px; letter-spacing: 1px; color: #A8C9FF !important; } input::-webkit-input-placeholder { font-size: 12px; letter-spa 阅读全文
posted @ 2019-09-20 15:08 武卡卡 阅读(1587) 评论(0) 推荐(0) 编辑
摘要: CSS 样式 : border:none; border-bottom: 1px solid #000 CSS 样式 : border:none; border-bottom: 1px solid #000 阅读全文
posted @ 2019-09-20 11:19 武卡卡 阅读(4727) 评论(0) 推荐(0) 编辑
摘要: date:{ type: String, default: () => moment(new Date()).format('YYYY-MM-DD HH:mm:ss'), } date:{ type: String, default: () => moment(new Date()).format( 阅读全文
posted @ 2019-09-19 22:50 武卡卡 阅读(741) 评论(0) 推荐(1) 编辑
摘要: 1,安装 moment模块 cnpm i moment --save 2,引入 var moment = require('moment'); 3,获取当前时间并格式化 var current_time = moment(Date.now()).format('YYYY-MM-DD HH:mm:ss 阅读全文
posted @ 2019-09-19 22:39 武卡卡 阅读(6267) 评论(0) 推荐(1) 编辑
摘要: mongoose.set('useCreateIndex', true) // 加上这个 阅读全文
posted @ 2019-09-19 08:44 武卡卡 阅读(526) 评论(0) 推荐(0) 编辑
摘要: req.headers.cookie 阅读全文
posted @ 2019-09-13 22:32 武卡卡 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 一,服务器文件 app.js 。( 要使用路由的文件) const express = require('express') const app = express() const swig = require('swig') const bodyParser = require('body-par 阅读全文
posted @ 2019-09-12 22:20 武卡卡 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 1,上三角型 阅读全文
posted @ 2019-09-10 16:05 武卡卡 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1, if(flag) 判断是否为 true 2, if(!flag) 判断是否为false 阅读全文
posted @ 2019-09-08 11:18 武卡卡 阅读(1247) 评论(0) 推荐(0) 编辑
摘要: 1.安装bcryptjs模块 2.在需要加密的模块中引入bcryptjs库 require('bcryptjs'); 实战 : /** * 定义数据库模型 */ const userSchema = new mongoose.Schema({ username:{ type:String, uniq 阅读全文
posted @ 2019-09-07 21:54 武卡卡 阅读(1335) 评论(3) 推荐(2) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 39 下一页