09 2019 档案

摘要:转载自 https://www.cnblogs.com/sk-3/archive/2019/07/23/11232750.html 使用了setHours() 方法 setHours() 方法用于设置指定的时间的小时字段 1. 获取当天开始时间 moment(new Date(new Date(ne 阅读全文
posted @ 2019-09-30 10:48 武卡卡 阅读(1869) 评论(1) 推荐(0) 编辑
摘要:转载自 : https://www.cnblogs.com/xiangsj/p/10425173.html 阅读全文
posted @ 2019-09-30 10:11 武卡卡 阅读(2144) 评论(0) 推荐(1) 编辑
摘要:强制换行 word-break: break-all; 只对英文起作用,以字母作为换行依据。 word-wrap: break-word; 只对英文起作用,以单词作为换行依据。 white-space: pre-wrap; 只对中文起作用,强制换行。 禁止换行 white-space:nowrap; 阅读全文
posted @ 2019-09-30 09:28 武卡卡 阅读(523) 评论(0) 推荐(0) 编辑
摘要:<template slot-scope="scope"> <el-button type="primary" size="small" @click="$router.push(`/categories/edit/${scope.row._id}`)">编辑</el-button> <!-- $r 阅读全文
posted @ 2019-09-27 13:08 武卡卡 阅读(46559) 评论(6) 推荐(32) 编辑
摘要:1、JS中的||符号: 2、JS中的&&符号: 阅读全文
posted @ 2019-09-26 21:54 武卡卡 阅读(898) 评论(0) 推荐(0) 编辑
摘要:pow 方法返回底表达式的指定次幂。 Math.pow(base, exponent) 参数base必选项。表达式底的值。exponent必选项。表达式的指数值。 阅读全文
posted @ 2019-09-26 15:57 武卡卡 阅读(7947) 评论(0) 推荐(4) 编辑
摘要:1,安装element : vue add element 2,安装路由 : vue add router 3,创建路由的过程 : (1) 新建 vue页面 main.vue , (2)在router.js 文件中引入和注册 , (3)前台引入 <router-link to="/main">Mai 阅读全文
posted @ 2019-09-24 14:04 武卡卡 阅读(1189) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2019-09-24 08:20 武卡卡 阅读(1213) 评论(2) 推荐(1) 编辑
摘要:be being done 例: The story book was being read by him . 阅读全文
posted @ 2019-09-23 13:48 武卡卡 阅读(1186) 评论(0) 推荐(0) 编辑
摘要:take care of 照顾 take place 发生 take action 行动 take over 接管 take in 欺骗(某人) take up 拿起 take away 带走 take off 脱下衣服,飞机起飞。 take a chance 冒险 take account of 阅读全文
posted @ 2019-09-23 08:40 武卡卡 阅读(3674) 评论(0) 推荐(0) 编辑
摘要:原因 : 路由一定要暴露给外部使用 var express = require('express') var router = express.Router() router.get('/',(req,res)=>{ res.render('main/index.html') }) module.e 阅读全文
posted @ 2019-09-21 07:23 武卡卡 阅读(695) 评论(0) 推荐(0) 编辑
摘要: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 武卡卡 阅读(1617) 评论(0) 推荐(0) 编辑
摘要:CSS 样式 : border:none; border-bottom: 1px solid #000 CSS 样式 : border:none; border-bottom: 1px solid #000 阅读全文
posted @ 2019-09-20 11:19 武卡卡 阅读(4753) 评论(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 武卡卡 阅读(742) 评论(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 武卡卡 阅读(6325) 评论(0) 推荐(1) 编辑
摘要:mongoose.set('useCreateIndex', true) // 加上这个 阅读全文
posted @ 2019-09-19 08:44 武卡卡 阅读(529) 评论(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 武卡卡 阅读(251) 评论(0) 推荐(0) 编辑
摘要:1,上三角型 阅读全文
posted @ 2019-09-10 16:05 武卡卡 阅读(156) 评论(0) 推荐(0) 编辑
摘要:1, if(flag) 判断是否为 true 2, if(!flag) 判断是否为false 阅读全文
posted @ 2019-09-08 11:18 武卡卡 阅读(1257) 评论(0) 推荐(0) 编辑
摘要:1.安装bcryptjs模块 2.在需要加密的模块中引入bcryptjs库 require('bcryptjs'); 实战 : /** * 定义数据库模型 */ const userSchema = new mongoose.Schema({ username:{ type:String, uniq 阅读全文
posted @ 2019-09-07 21:54 武卡卡 阅读(1361) 评论(3) 推荐(2) 编辑
摘要:input::placeholder { font-size: 12px; font-family: Arial; letter-spacing: 5px; color: red !important; text-align: center; } input::placeholder { font- 阅读全文
posted @ 2019-09-06 15:45 武卡卡 阅读(15374) 评论(0) 推荐(3) 编辑
摘要:canvas = document.getElementById('canvas1'); var context = canvas.getContext('2d');context.fillStyle = 'rgba(255, 255, 255, 0)' var context = canvas.g 阅读全文
posted @ 2019-09-03 17:12 武卡卡 阅读(6720) 评论(0) 推荐(0) 编辑
摘要:document.documentElement.scrollTop||document.body.scrollTop 阅读全文
posted @ 2019-09-03 13:46 武卡卡 阅读(5515) 评论(0) 推荐(1) 编辑
摘要:arr = [1,2,3,4,5] console.log(arr[arr.length-1]) //输出的为5,即最后一个 阅读全文
posted @ 2019-09-03 13:17 武卡卡 阅读(1691) 评论(0) 推荐(1) 编辑

喜欢请打赏

扫描二维码打赏

支付宝打赏

点击右上角即可分享
微信分享提示