解决 pm2 command not found 问题
在 Linux 环境通过 npm 全局安装 pm2 后,运行 pm2 命令却显示没有找到该命令:-bash: pm2: command not found。上网查找资料发现,这是因为没有创建软连接导致的。
在 Linux 环境通过 npm 全局安装 pm2 后,运行 pm2 命令却显示没有找到该命令:-bash: pm2: command not found。上网查找资料发现,这是因为没有创建软连接导致的。
在 nginx 服务器上准备调试 Nuxt 项目时,打开浏览器却发生了下图的情形。可以看到,样式发生明显错乱,图片资源也没有加载出来。而我在本地代码调试时,显示效果是正常的。在反复确认本地代码和服务端上的代码并无二致后,查看报错信息发现引入的 css 文件、js 文件以及图片资源都没有加载出来。
typeof 转换类型
| typeof 转换类型 | 结果 |
|---|---|
| {} | object |
| [] | object |
| null | object |
| undefined | undefined |
| NaN | number |
| 0 | number |
| true | boolean |
| ‘ ‘ | string |
number 转换类型
| Number 转换 | 结果 |
|---|---|
| Number({}) | NaN |
| Number([]) | 0 |
| Number(‘’) | 0 |
| Number(null) | 0 |
| Number(undefined) | NaN |
| Number(NaN) | NaN |
Math is a built-in object that has properties and methods for mathematical constants and functions. It’s not a function object.
Math works with the Number type. It doesn’t work with BigInt.