摘要: 1.https://lhammer.cn/You-need-to-know-css/#/zh-cn/ 2.https://chokcoco.github.io/CSS-Inspiration/#/ 3.https://qishaoxuan.github.io/css_tricks/ 4.https: 阅读全文
posted @ 2021-07-10 10:03 rxj极光 阅读(115) 评论(0) 推荐(0) 编辑
摘要: js 对象克隆 把原来对象的属性遍历一遍,赋给一个新的对象 //深复制对象方法 var cloneObj = function (obj) { var newObj = {}; if (obj instanceof Array) { newObj = []; } for (var key in ob 阅读全文
posted @ 2021-07-09 09:14 rxj极光 阅读(853) 评论(0) 推荐(0) 编辑
摘要: display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; 盒子不能设置高度 阅读全文
posted @ 2021-06-25 16:49 rxj极光 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 登录后台验证token passport passport-jwt 阅读全文
posted @ 2021-03-12 17:14 rxj极光 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 仓库 # 在当前目录新建一个Git代码库 $ git init # 新建一个目录,将其初始化为Git代码库 $ git init [project-name] # 下载一个项目和它的整个代码历史 $ git clone [url] 配置 # 显示当前的Git配置 $ git config --lis 阅读全文
posted @ 2021-03-06 13:39 rxj极光 阅读(32) 评论(0) 推荐(0) 编辑
摘要: show dbs; //查询所有库 show collecitons;//查询库中的连接 use test1;//创建数据库/切换数据库 db.dropDatabase();//删除数据库 阅读全文
posted @ 2021-03-05 16:46 rxj极光 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 命令面板 在服务器中查看宝塔默认信息/etc/init.d/bt default bt -宝塔面板命令行 密码:2级 宝塔软件 pm2 node.js管理器 阅读全文
posted @ 2021-03-05 16:07 rxj极光 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 关系数据库中表与表的3中关系 1.一对一的关系 1.一对多的关系 1.多对多的关系 mongoDb中的聚合管道 //MongoDB中聚合(aggregate)主要用于处理数据(诸如统计平均值,求和等),并返回计算后的数据结果 下表展示了一些聚合的表达式: | 表达式 | 描述 | 实例 | | | 阅读全文
posted @ 2021-02-26 10:24 rxj极光 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 基本操作 1.安装 npm i mongoose --save // 1.引入 let mongoose = require("mongoose"); //2.链接数据库 //mongoose.connect("mongodb://username:123456@localhost/m_data") 阅读全文
posted @ 2021-02-23 16:39 rxj极光 阅读(165) 评论(0) 推荐(0) 编辑
摘要: State 单一状态树,定义应用状态的默认初始值,页面显示所需的数据从该对象中进行读取。 Getter 可以认为是 store 的计算属性,对 state 的加工,是派生出来的数据。 Mutation Vuex中store数据改变的唯一方法就是mutation 通俗的理解,mutations 里面装 阅读全文
posted @ 2021-02-22 11:46 rxj极光 阅读(107) 评论(0) 推荐(0) 编辑