Skip to content
This repository was archived by the owner on May 17, 2020. It is now read-only.
This repository was archived by the owner on May 17, 2020. It is now read-only.

嘗試用 express 內建方法建構靜態網站 #4

Description

@wdzeng

const html=fs.readFileSync('default.html','utf8');

如題,避免用 fs module的 readFileSync

BTW,可以試著研究看看 readFilereadFileSync 的差別以及使用方式。這對於了解 ES2015 以上的語法很有幫助。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions