Files
ClassContent/历届学生/font-end-nine/每天上课/2022-07-05/笔记.txt
2024-09-27 02:06:13 +08:00

75 lines
1000 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Node.js 是什么?
fs
是一个js在服务器上的运行环境
v8
c++
问:能不能让js变成后端语言?
Node.js
js 运行 靠 V8 引擎
前端开发三个阶段
1 HTML CSS table
2 html+css+js(jquery) 操作dom
mvc mvc框架
nodejs 蓬勃发展
3 mvvm angular.js
react
vue
npm 全球最大的包(插件,依赖)管理工具
npm init 初始化一个 nodejs 项目 package.json
-y
npm run xxx 使用npm运行scripts中的命令
npm install(简写 i) 插件名称 参数
参数:
--save -S 将插件保存到上线阶段 dependencies
--save-dev -D 将插件保存到开发阶段 devDependencies
-g 将插件安装到操作系统全局
npm i
devDependencies 开发阶段的插件依赖
dependencies 上线阶段的插件依赖
cnpm 淘宝
npm uninstall 插件名
node_modules 存放你项目开发中所有下载下来的插件
package-lock.json
爬虫