摘要: bcrypt:对客户端传过来的密码进行加密处理,存入数据库。 环境依赖 1.下载安装python 2.x 版本,配置环境变量。2.全局安装node-gyp npm install node-gyp -g 3.以管理员身份安装windows-build-tools(时间较长,耐心等待) npm ins 阅读全文
posted @ 2021-06-22 15:40 流弊的小涛 阅读(113) 评论(0) 推荐(0) 编辑
摘要: # 等同于 git add . && git commit -m git commit -am# 查看远程分支 git branch -r # 新建本地分支,但不切换 git branch <branch-name> # 查看本地分支 git branch # 查看远程分支 git branch - 阅读全文
posted @ 2021-06-16 16:00 流弊的小涛 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 1.修改state中的值,必须采用setState修改。 this.setState()中可以传递两种格式的参数,第一种 componentDidMount() { this.setState({ count: this.state.count + 1 }, () => { console.log( 阅读全文
posted @ 2021-06-04 21:55 流弊的小涛 阅读(85) 评论(0) 推荐(0) 编辑
摘要: rules: { 'no-console': process.env.NODE_ENV 'production' ? 'warn' : 'off', 'no-debugger': process.env.NODE_ENV 'production' ? 'warn' : 'off', 'space-b 阅读全文
posted @ 2021-04-08 19:28 流弊的小涛 阅读(76) 评论(0) 推荐(0) 编辑
摘要: Bootstrap划分了四种尺寸:超小屏(手机)、小屏(平板竖屏)、中屏(平板横屏)和大屏(PC),每一类中顶层包含块container的宽度都是固定的。还可以使用.container-fluid将固定宽度转换为连续的宽度(width=100%)。 这里有个疑问:为什么对于大屏设备,containe 阅读全文
posted @ 2021-04-01 09:48 流弊的小涛 阅读(106) 评论(0) 推荐(0) 编辑
摘要: var bt01 = document.getElementById("bt01"); bt01.onclick = function() { bt01.disabled = true; //当点击后倒计时不能点击此按钮 var time = 60; //倒计时60秒 var timer = set 阅读全文
posted @ 2021-03-31 14:27 流弊的小涛 阅读(103) 评论(0) 推荐(0) 编辑
摘要: // es6继承 class Animal { //构造函数,里面写上对象的属性 constructor(props) { this.name = props.name || 'Unknown'; } //方法写在后面 eat() {//父类共有的方法 console.log(this.name + 阅读全文
posted @ 2021-02-21 09:44 流弊的小涛 阅读(24) 评论(0) 推荐(0) 编辑
摘要: // vue.config.js 配置说明 //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions // 这里只列一部分,具体配置参考文档 const fs = require('fs') module.ex 阅读全文
posted @ 2021-02-11 09:45 流弊的小涛 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1.变量的声明(使用@符) @width: 10px; @height: @width + 10px; #header { width: @width; height: @height; } 2.混合 .bordered { border-top: dotted 1px black; border- 阅读全文
posted @ 2021-02-10 22:38 流弊的小涛 阅读(47) 评论(0) 推荐(0) 编辑
摘要: "less.compile": { "compress": false,//是否压缩 "sourceMap": false,//是否生成map文件,有了这个可以在调试台看到less行数 "out": true, // 是否输出css文件,false为不输出 "outExt": ".css", // 阅读全文
posted @ 2021-02-10 21:02 流弊的小涛 阅读(64) 评论(0) 推荐(0) 编辑