1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

fix(proposals): shell exec style

Executing file directly must start with (absolute/relative) path under Linux
This commit is contained in:
waiting 2020-04-07 10:27:28 +08:00
parent ac50325b6e
commit 1474f82f17
No known key found for this signature in database
GPG Key ID: 9DC706A8664B0312

View File

@ -596,7 +596,7 @@ console.log(1);
$ node hello.js
# hashbang 的方式
$ hello.js
$ ./hello.js
```
对于 JavaScript 引擎来说,会把`#!`理解成注释,忽略掉这一行。