SyntaxError:在嚴格模式下使用const我正在使用node.js,并在我正在使用的一個js文件const中"strict mode"。當試圖運行它時,我收到一個錯誤:SyntaxError: Use of const in strict mode.這樣做的最佳做法是什么?編輯:'use strict'const MAX_IMAGE_SIZE = 1024*1024; // 1 MB
SyntaxError:在嚴格模式下使用const
繁星coding
2019-07-24 10:06:45