Code Monkey home page Code Monkey logo

1808b's Introduction

node 的基础知识

nodejs 后端语言 java/php 等价 单线程/异步,无阻塞 i/o

node 的几个核心模块

  1. http 模块 创建服务器 新建文件 app.js
  2. url 模块 解析 url
  3. path 模块 解析路径 path.join path.resolve
  4. fs filesystem 文件处理 读写文件

node 的启动方式

  1. vscode 插件 code runner
  2. node + 文件名
  3. 服务端代码有改动需要重启

node 模块的使用 commonjs 规范

�moulde.exports 表示导出模块 require 引入模块

6.26 作业:

  1. ?name=1&age=2&c=3 => {name:1,age:2,c:3}
  2. [{"id":1,"name":"苹果"},{"id":2,"name":"🍊"}] id 为 1 的这一项 name 修改成 "香蕉" 读 写 6.27 作业
  3. 实现数组扁平化(2 种方法) [1,2,[3,4,[5,6,[7,8]]]] =>[1,2,3,4,5,6,7,8]

ruanye 密码:yezui1314A yezui 12345678

  • window 常用 linux 命令
    touch 建立文件 mkdir 新建文件夹 cd 进入文件路径

1808b's People

Contributors

ruanye avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.