Git Product home page Git Product logo

pracrice_node.js's Introduction

practice_Node.js

Chapter 1

インストール

https://nodejs.org/ja/

Chapter 2

  • require('モジュール名')でインポート

  • 関数の書き方

    function(a, b){
      処理
    }
    // と
    (a, b)=>{
      処理
    }
    //  はやっていること一緒
  • http.ServerResponseメソッド

    // ヘッダ情報を設定する
    response.setHeader(名前, )
    // ヘッダ情報を得る
    response.getHeader(名前)
    // ヘッダ情報を設定する
    response.writeHeader(コード番号, メッセージ)
  • 同期処理と非同期処理

    • 同期処理

      命令が終わってから次の処理をする

    • 非同期処理

      重いものは後で処理。コールバック関数が必要

  • npm(node package manager)

    npm install パッケージ名

Chapter 3

  • GETとPOST

    • GET

      いつ、どこからどうアクセスしても常に同じ結果が返される

    • POST

      その時、その状況での表示を行うような場合

  • break;大事

pracrice_node.js's People

Contributors

tokuotsu avatar

Watchers

 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.