记录Javascript 中遇到过的require。
const Review = require('./review')
这里代表的是require 同一文件夹下的review.js文件 .
- ./ means look for modules in the current folder
- review代表review文件 It will automatically try appending extensions like .js, .json, and .node可以为review.js 也可以为review.json
和下面src=""是不一样的。
<script src="/public/javascripts/validateForms.js"></script>