09 2019 档案
摘要:转载自 https://www.cnblogs.com/sk-3/archive/2019/07/23/11232750.html 使用了setHours() 方法 setHours() 方法用于设置指定的时间的小时字段 1. 获取当天开始时间 moment(new Date(new Date(ne
阅读全文
摘要:转载自 : https://www.cnblogs.com/xiangsj/p/10425173.html
阅读全文
摘要:强制换行 word-break: break-all; 只对英文起作用,以字母作为换行依据。 word-wrap: break-word; 只对英文起作用,以单词作为换行依据。 white-space: pre-wrap; 只对中文起作用,强制换行。 禁止换行 white-space:nowrap;
阅读全文
摘要:<template slot-scope="scope"> <el-button type="primary" size="small" @click="$router.push(`/categories/edit/${scope.row._id}`)">编辑</el-button> <!-- $r
阅读全文
摘要:1、JS中的||符号: 2、JS中的&&符号:
阅读全文
摘要:pow 方法返回底表达式的指定次幂。 Math.pow(base, exponent) 参数base必选项。表达式底的值。exponent必选项。表达式的指数值。
阅读全文
摘要:1,安装element : vue add element 2,安装路由 : vue add router 3,创建路由的过程 : (1) 新建 vue页面 main.vue , (2)在router.js 文件中引入和注册 , (3)前台引入 <router-link to="/main">Mai
阅读全文
摘要:1,表示一类人 (复数) the young 青年 the old 老年the poor 穷人 the rich 富人the sick 病人 The old need care more than the yonger . 2. 抽象名词 (单数) The good is not always th
阅读全文
摘要:be being done 例: The story book was being read by him .
阅读全文
摘要:take care of 照顾 take place 发生 take action 行动 take over 接管 take in 欺骗(某人) take up 拿起 take away 带走 take off 脱下衣服,飞机起飞。 take a chance 冒险 take account of
阅读全文
摘要:原因 : 路由一定要暴露给外部使用 var express = require('express') var router = express.Router() router.get('/',(req,res)=>{ res.render('main/index.html') }) module.e
阅读全文
摘要:input::placeholder { font-size: 12px; letter-spacing: 1px; color: #A8C9FF !important; } input::-webkit-input-placeholder { font-size: 12px; letter-spa
阅读全文
摘要:CSS 样式 : border:none; border-bottom: 1px solid #000 CSS 样式 : border:none; border-bottom: 1px solid #000
阅读全文
摘要:date:{ type: String, default: () => moment(new Date()).format('YYYY-MM-DD HH:mm:ss'), } date:{ type: String, default: () => moment(new Date()).format(
阅读全文
摘要: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
阅读全文
摘要:mongoose.set('useCreateIndex', true) // 加上这个
阅读全文
摘要:一,服务器文件 app.js 。( 要使用路由的文件) const express = require('express') const app = express() const swig = require('swig') const bodyParser = require('body-par
阅读全文
摘要:1, if(flag) 判断是否为 true 2, if(!flag) 判断是否为false
阅读全文
摘要:1.安装bcryptjs模块 2.在需要加密的模块中引入bcryptjs库 require('bcryptjs'); 实战 : /** * 定义数据库模型 */ const userSchema = new mongoose.Schema({ username:{ type:String, uniq
阅读全文
摘要:input::placeholder { font-size: 12px; font-family: Arial; letter-spacing: 5px; color: red !important; text-align: center; } input::placeholder { font-
阅读全文
摘要:canvas = document.getElementById('canvas1'); var context = canvas.getContext('2d');context.fillStyle = 'rgba(255, 255, 255, 0)' var context = canvas.g
阅读全文
摘要:document.documentElement.scrollTop||document.body.scrollTop
阅读全文
摘要:arr = [1,2,3,4,5] console.log(arr[arr.length-1]) //输出的为5,即最后一个
阅读全文