随笔分类 -  nodejs

摘要:什么是类数组,一开始我是懵逼的,直到我要学习ts才知道类数组这个东西 类数组:是一种相似数组的对象,并提供了一种用于访问原始二进制数据的机制,但不是真正的数组。js 中类数组对象有不少,例如arguments、 NodeList、 HTMLCollection、 jQuery等 类数组拥有的特性 l 阅读全文
posted @ 2022-07-05 17:45 王小美丶 阅读(298) 评论(0) 推荐(0)
摘要:linux命令 cd /home 进入 '/ home' 目录' cd .. 返回上一级目录 cd ../.. 返回上两级目录 cd 进入个人的主目录 cd ~user1 进入个人的主目录 cd - 返回上次所在的目录 netstat -anp |grep 端口 查看端口被哪个进程占用kill -9 阅读全文
posted @ 2020-11-23 14:06 王小美丶 阅读(420) 评论(0) 推荐(0)
摘要:1.进入环境 ./mongo 2.切换数据库 use admin 3.添加超级管理员账号密码 db.createUser( {user: "admin",pwd: "123456",roles: [root]}) // user 用户名 pwd 密码 roles 用来设置用户的权限是否支持读写等操作 阅读全文
posted @ 2020-04-04 15:27 王小美丶 阅读(546) 评论(0) 推荐(0)
摘要:mongoexport -d test -u admin -p admin -c collection --out test.json --jsonArray // 导出 mongoimport -d test -u admin -p admin -c collection --file test. 阅读全文
posted @ 2020-04-04 14:52 王小美丶 阅读(356) 评论(0) 推荐(0)
摘要:1.安装node(已经安装好了可以跳过) 点击此次去下载 2.创建项目 基于node的express 或 koa 在桌面空白处或者其他文件夹空白处 shift+鼠标右键 打开powershell窗口 全局安装express 这里以express为例 npm install express-gener 阅读全文
posted @ 2020-03-14 17:23 王小美丶 阅读(2051) 评论(0) 推荐(1)