Files
ClassContent/历届学生/front-end-team/每天课程/2022-04-07/笔记.txt
2024-09-27 02:06:13 +08:00

56 lines
790 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
其实js但是 它是运行在服务器上的js的运行环境所以nodejs其实也是后端编程语言。
nodejs
c++ + v8(js运行环境)
deno
前端
1html+css
2: jquery
|
Node.js 分工 前后端分离
|
3: vue react an....
啥玩意?
为什么学?
nodejs
package.json
npm init 初始化一个nodejs项目
-y
npm run 命令名称(在 package.json 的 scripts 里面定义的)
npm 包(依赖)(插件)管理工具
npm i 下载项目依赖
npm installi 插件名字 阶段参数
npm i 插件名字 阶段参数
阶段:
开发阶段 --save-dev -D
正式阶段 --save -S
全局安装 -g
npm uninstall 插件名 卸载删除插件
// hosts 文件
www.baidu.com 127.0.0.1
abc.com 127.0.0.1